Click here to Skip to main content
15,892,927 members
Everything / WebSockets

WebSockets

WebSockets

Great Reads

by Darko Jurić
WebSocket RPC library for .NET with auto JavaScript client code generation, supporting ASP.NET Core.
by Gwyll
We're in a Dark Age when it comes to Software Development. We need a Renaissance.
by Jaime Olivares
An architectural proposal to integrate mobile and .Net applications
by tonywilk
Example server and client using different protocols over a Websocket (php/js)

Latest Articles

by Gwyll
We're in a Dark Age when it comes to Software Development. We need a Renaissance.
by Michael Chourdakis
A quick way to interoperate between Win32 and a browser using WebSockets
by Sandeep Mewara
See with a working demo how SignalR works and how it can be used
by Silvia Campo
I've been using web sockets the same way as a regular http request; I wasn't using them to their full potential...

All Articles

Sort by Title

WebSockets 

24 May 2021 by TheBigBearNow
Hello all, When my site is deployed and multiple people as using it I am trying to understand if my server were able to handle these requests from multiple people. At first itll only be 10-20 people but I plan on it growing. On the UI since its...
24 May 2021 by Chris Copeland
Asynchronous Server Socket Example | Microsoft Docs[^] The above might help you out, it depends on how you've implemented your accept/receive endpoints. In theory your socket should be handling connections and reception of buffers on a separate...
7 May 2021 by TheBigBearNow
Hello all, I have a .Net Core application and I’m using the Binance.Net API. I want to show the trades coming in real time and update my View with the current trades. I’m not sure the correct way to do this. Possibly ajax? The data that is coming...
29 Jul 2018 by ilostmyid2
In the following code: #define Uses_Info #define Uses_WebSocketServer #include "ws.h" int on_connect(WebSocketServer *server); void on_message(const char *buf); void on_disconnect(); void* CALLBACK ws_stream_on_connect(WebSocketServer *server) { Info("ws_stream_on_connect"); int n = 5;...
28 Jul 2018 by Manfred Rudolf Bihy
Maybe an exception was thrown ? You can wrap the server-> send in a try/catch statement and log a message in the catch block. BR, Manfred
29 Jul 2018 by ilostmyid2
oh i found something! in mod_websocket.c, in function handle_websocket_connection, before calling conf->plugin->on_connect which is indeed ws_stream_on_connect, apr_thread_mutex_lock is called on state.mutex. then in mod_websocket_plugin_send we see the lock again. BMO, this means that...
16 Dec 2012 by WebMaster
http://soccer2012live.blogspot.com/http://soccer2012live.blogspot.com/
16 Dec 2012 by WebMaster
http://tinyurl.com/ccf24nvhttp://tinyurl.com/ccf24nv[^]http://tinyurl.com/ccf24nv[^]http://tinyurl.com/ccf24nv[^]
16 Dec 2012 by WebMaster
http://soccer2012live.blogspot.com/http://soccer2012live.blogspot.com/[^]
16 Dec 2012 by Afrin Jaman
Quote:FREE HERE>>>>> http://tinyurl.com/bu3cewt[^]Quote:FREE HERE>>>>> http://tinyurl.com/bu3cewt[^]Quote:FREE HERE>>>>> http://tinyurl.com/bu3cewt[^]Quote:FREE HERE>>>>> http://tinyurl.com/bu3cewt[^]Quote:FREE HERE>>>>> http://tinyurl.com/bu3cewt[^]Quote:FREE HERE>>>>>...
7 Oct 2013 by Mark R Slade
I am trying to build an Alchemy Websockets server with VB.NET. I have taken the sample code, in C#, for setting up a new instance of the server and ran it though a C# to VB converter.ORGINAL C# CODE:-{ // instantiate a new server - acceptable port and IP range, // and set up your...
7 Oct 2013 by pdoxtader
Well, at first glance the object initializer isn't formatted correctly. How about this: Dim aServer = New WebSocketServer(81, IPAddress.Any) With { _ .OnReceive = OnReceive, .OnSend = OnSend, .OnConnect = OnConnect, .OnConnected = OnConnected, .OnDisconnect =...
28 Nov 2012 by shankar.parsanamoni
want to bind list of values to kendoCombobox from dataBase through webservices.Here is the code$(document).ready(function () $("#CbxArea").kendoComboBox(); var cmbArea = $("#CbxArea"); $.ajax({type:...
28 Aug 2013 by rwx75
Following angular code doesn't work. How can it be fixed?**$scope.Load = false;**div ng-controller="Soket_Control"> ...
16 Mar 2013 by Oleksandr Kulchytskyi
Hi guys.Does anybody have encountered with problem of transferring voice stream in a HTML5 client to the backend (.NET, Java) ??Maybe someone have some useful links, etc. ??Thanks for advance.
22 May 2017 by raddevus
Learn to use SignalR to asynchronously update all web clients using SignalR broadcasts.
23 Nov 2015 by mlowry
I am new to websockets and am developing an application to run on an IIS server with connection to a Windows Forms client. The message-oriented app (read as byte streams) will have a mix of message sizes, from less than 1k to a max of 64k. It will also have varying frequency of messages, with...
3 Aug 2015 by Suraj Dighodkar
i am using wysihtml editor if i paste "http://www.google.com" in wyshtml editor then pasted value comes in anchor tags as value instead of the value what i pasted . if i manually write "http://www.google.com" then anchor is dose not prefixed as a value.so i want the value without anchor tag...
4 Aug 2015 by Richard Deeming
I've only ever seen this happen in Internet Explorer. Assuming that's the browser you're using, try executing the following javascript code when the page loads:if (typeof(document.execCommand) === "function"){ try { document.execCommand("AutoUrlDetect", false, false); ...
4 Mar 2015 by Alexander Iacobciuc
This article is about a basic implementation of HTML5 client/server chat application.
24 May 2017 by raddevus
Use SignalR to create a Slideshow app which asynchronously updates all web clients so they see the same slide you are seeing.
14 Jan 2015 by Kurkey
Hello,I would like to ask of anyone ever wrote web socket client in C# as e.g. console application. I did find some external libraries but either they had no SSL support or it didn't make any difference. I'm using .NET 3.5 and I can't change it. Unfortunately my client is using WebSocket and I...
15 Jan 2015 by BacchusBeale
To send requests and receive responses you can use:HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);where url is the query string "https://...".The main difference with SSL is you must verify the certificate://before any request you need this only once in your...
5 Nov 2012 by m.bleimuth
Hi,i am trying to write some kind of a simple information System. My Server is written in c#, it sends every minutes udp heartbeats with Server Information (ip, port of the Server). Now i want to write a simple Website with html and JavaScript that connects to my Server and receives data...
5 Nov 2012 by CafedeJamaica
You can set up a TCPListener depending, if you google the class there is a very straght forwad example.http://msdn.microsoft.com/en-us/library/system.net.sockets.tcplistener.aspx[^]make sure that you select the right version of .net for your client implmentation for the example.
12 Feb 2013 by Chinna2903
Hi,I just need how we could call a webservice from a html page in android. please let me know if there are any samples.Thanks
12 Feb 2013 by Guirec
You need to integrate a javascript library which can deal with soap content. There is one here[^] but I have never tried it myself so I can't tell how good it is.
3 Aug 2012 by Pallab_GT
Hello friends.I am designing a system where the requirement is as follows:I have to send a large file (10mb +) to asp.net through AJAX. The file will be sorted in the server and it will take time. I have to notify the client the status of the sorting accurately.Suppose I am sorting 100 sets...
4 Aug 2012 by Parwej Ahamad
You can achieve it through tow way- On client side, run a timer that will check periodically if any notification available from DB and for notification update the database.- Second is, use SignalR through this register a method on client side and on server side once you done your sorting...
7 Aug 2022 by Abdalla Roda
I am trying to scrape a website that receives instructions on what to render through a WebSocket connected with the backend. So on every WebSocket frame received, i will get the content of the page run it through a function that builds an object...
7 Aug 2022 by Tony Hill
Shouldn't you be comparing using the strict equality operator === and not equality operator ==
3 Apr 2022 by Member 15589097
Im trying since a couple of weeks to create a chain of WebSockets clients, to form a middleware pattern. Like in express/connect where you call `app.use(() => {...})` but with WebSocket clients. Illustration about the data/events flow:...
6 Oct 2012 by johnnyq8
hello everyone thanks for reading my thread , im into creating a commercial website , it will be similar to ebay which make users sell there items ebay is a great example i don't where to start but want to know how the website will stand i mean the parts of the website like database and stuff...
6 Oct 2012 by johnnyq8
yes the question is what are the standards of the website ?
8 Oct 2012 by johnnyq8
i mean by standards the basics im not a total noob about web stuff there is something called web development and web designing the first are the mathmatec codes in the back end of the website and the second are the front end of the website , i just any one explain to me how a good secured...
14 Oct 2014 by engineforce
Debug / Inspect WebSocket traffic with Fiddler
18 Dec 2012 by sisir patro
Hi,For designing the menu you need to go through the following links.Best Practices To Design a Perfect HTML Navigation...
18 Dec 2012 by ahiredevyani
hi ,If you want to learn more you can visit to site w3schools its really helpful.
9 Mar 2019 by rfl.souza
I did some research and did not find anything, ISAPI is old but I have a lot of things and stable, I wanted to know if I can use websocket on it. I did not want to use a specific port for the Server. I want everything running behind IIS on port 80 or 443. What I have tried: I searched on...
27 Sep 2018 by Dave Kreskowiak
This doesn't make sense. ISAPI is used for writing extensions and filters to IIS. Web sockets is used for TCP/IP communication between a client and a non-web server listening on a port. That port can NOT be port 80 or 443 because those are taken up by the HTTP server. What are you trying to do...
9 Mar 2019 by davercadman
Hi I can't find anything on isape websocket either. I do think this is a viable way to go. The way I see it is the browser is able to do it - then the server has to comply with the browsers calls. So if you handle the "UPGRADE" in your isapi then why not?!? I am going to work on this and...
20 Jan 2012 by shankha2010
Hi, I am trying to navigate to google with some search keyword.as those search pages are too big and I don't want the header part, so decided to try partial download the page from 1000th character to end.so I tried Range: bytes=1000- in HTTP header which works for me for other...
21 Jan 2012 by Graham Breach
If you using custom search, you can ask for partial responses: http://code.google.com/apis/customsearch/v1/performance.html[^]
2 Apr 2013 by Ievgen Ragulin
Comparing performance channel api and socket.io on example of multiuser whiteboard
23 Sep 2016 by Eugene Rudenko
How to handle websocket connection in Erlang app
25 Jan 2016 by JuanFelipe Loyola Andrade
Hello, I have a server connected to a GoPro camera, which sends the images in base64 format, and can be seen on localhost, now I need to capture screenshot, but I can not, any ideas? Go Pro cliente
3 Jan 2015 by Member 11341870
My task is to implement a Node.Js server ("my server") that will continuously read-in messages which are being emitted from several different websocket connections ("source servers", different URLs) and then process these messages somehow.I was successful in the case of ws (or wss)...
3 Jan 2015 by Member 11341870
Package socket.io-client solves the problem :-) var socket = require('socket.io-client')('http://io.weplay.io'); socket.on('connect', function(){ console.log('Connected.');}); socket.on('message', function(data){ console.log(data);}); I could not solve it for several...
6 Feb 2013 by Am Gayathri
in my application am usingxxxxxxxbut i want to adjust the width of the too.so how can i do that here? i already used style tag?how can i give two attributes?
6 Feb 2013 by Joezer BH
Hi KavithaxxxxxxxCheers, Edo
6 Feb 2013 by Pete O'Hanlon
Whenever you need to add multiple styles, all you need to do is separate them by a semi-colon. Edo has given a simple example in Solution 1. I would, however, advise against using inline styles; while they may seem convenient at first, they can end up causing you a lot of pain should you decide...
7 Feb 2013 by shiny13
You should spend about 3-4 hours on just learning basics of HTML and CSS before implementing things. You're life will be made much easier. The following will help:1. Video tutorials from pluralsight.com2. HTML Dog: http://www.htmldog.com/guides/cssbeginner/[^]3....
7 Feb 2013 by Career Web Helper
while applying multiple attributes by using style you need to do is separate the attributes by using semicolon like;xxxxxxxHappy coding!!!!!!
7 Feb 2013 by Ganesh Kumar Kaki
That's an INLINE STYLE SHEETBetter go for extended style sheets. It helps you to design the page in a quick time
12 Feb 2013 by vinodkumarnie
There are certain rules to write styles..So please Refer below links..http://www.javascriptkit.com/dhtmltutors/cssreference.shtml[^]http://www.w3schools.com/css/css_syntax.asp[^]http://www.w3schools.com/css/css_syntax.asp[^]
26 Mar 2023 by OriginalGriff
So if you are waiting for permission to start doing the research you describe, then consider it given. If you aren't then while we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We...
19 Mar 2020 by serchat_chasan
Hi to all, I am a full stack developer. I'm wondering to find a solution in android background. I'm thinking to write a push notification system for all mobile device types (android,ios) and for web browsers (i mean for web clients). I already...
3 Mar 2013 by Tobi P.
Hello togheterI would like to make a Local Area Network Chat. It should be accessible over the browser.How can I make something like this? Do I need special things? Do you know some tutorials or an explanation how to setup a lan-chat?Thank youPixel-Wizard
3 Mar 2013 by Thomas Daniels
Hi,Have a look here:ASP.NET Ajax Chat Application[^]Simple chat application for ASP.NET[^]Build a Web Chat Application using ASP.Net 3.5, LINQ and AJAX (in C# 3.5 or VB 9.0)[^]These chat applications use ASP.NET[^] and C#[^].
3 Mar 2013 by Sergey Alexandrovich Kryukov
Look at this way: whatever works for WWW can work for LAN, not visa versa. So, if you can make a Web char, it will work for LAN immediately. This way, there is nothing special you should look a manual for.From the other hand, LAN allows you to me way more free in instrumental facilities....
11 Jun 2014 by Yalcin Doksanbir
Dim rawData = System.Text.Encoding.UTF8.GetBytes("hello") Dim frameCount = 0 Dim frame(10) As Byte frame(0) = CByte(129) If rawData.Length
5 Jan 2023 by jonathan rogers Dec2022
just start learn WebSocket and made chat with Node js. But if user disconnect i dont know how delete him in page(so that other users can see that he has left). I This my localhost on Node.js, I think need delete user from array users but it dont...
5 Jan 2023 by King Masr
To delete users from a chat room in a web application using WebSockets and Node.js, you will need to implement a mechanism for removing the user's connection from the list of active connections. Here is an example of how you could do this using...
17 Aug 2020 by bigbits
I hope someone can help me I have looked and I know very little about websockets. P.S: We are working in a legacy code so it is pure php ( no laravel, symfony, nothing ) We have a partner that our server will have to listen to their websocket...
17 Aug 2020 by Sandeep Mewara
There are multiple examples on web with PHP/Websocket, please have a look at them: Simple PHP Chat using WebSocket - Phppot[^] Create a Bi-directional Connection to a PHP Server using HTML5 WebSockets[^] PHP and HTML5 WebSocket server and client...
27 Nov 2014 by Tariq Mehmood
I have more than 100 Clients .1) Each clients are behind router. (mean external IP always change)2) Each Clients have its own local DB SQL.3) Each Clients using Windows Application c#. 4) Each clients have not install IIS.5) Each Clients will have internet Connection.My Server is...
25 Mar 2014 by Ariana Bond
Hi,I am trying to fetch query string parameters while creating websocket connection. I have used traversed a lot to get the solution, got some answer, but didn't work out for me.Below is the code i am using...var url = require('url');var WebSocketServer =...
26 Mar 2022 by Mahdi Salah
Hello there, I am working in Laravel and web socket but I get this error : preg_match(): Argument #2 ($subject) must be of type string, array given and the error log you can see via that link: Laravel error tracking – Flare[^] Any...
3 Nov 2021 by Mahathir Mohammad Shuvo
I host a flask app in Ubuntu 18.04 LTS with Nginx and Gunicorn. I use Flask-SocketIO==5.0.1 for backend and "https://cdn.socket.io/3.1.3/socket.io.min.js" for front end. here is my server configuration: server { server_name toollaza.com; ...
11 Sep 2018 by nmeri17
I'm planning to work on a web project that requires concurrency. I have past experience with websockets and would favour using it again, although I've learnt about xamp and jabber and might be willing to explore if they're more viable. I recently learnt about CRDT (from figma) and while, from my...
8 Jul 2015 by Khushi Saraswat
I want to get view data on controller
8 Jul 2015 by DamithSL
refer Getting Data From View to Controller in MVC[^]
27 Aug 2015 by Dharmesh .S. Patil
You can do it with ViewModels like how you passed data from your controller to view.Assume you have a viewmodel like thispublic class ReportViewModel{ public string Name { set;get;}}and in your GET Action,public ActionResult Report(){ return View(new...
8 Jul 2015 by malhotraisha3388
hiwe have so many ways to pass data from view to controller and these are as follows:-1. ViewData2. ViewBag3. TempData4. using Modelfollowing are some links where you can get the code for this...
22 Dec 2014 by Adam Lee
I want to make simple demo in win form like "hello" send from client and server response back to that client. client Server. duplex communication .client ,server both are on different network .I had try to use socket ,web socket. Signal R ,X socket , socket .but i could not resolve...
23 Jul 2018 by ranio
I am trying to handshake via web socket in c# to a server with Self Signed Certificate and got exception as below: Exception got as below: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. --->...
10 Apr 2017 by Member 13072690
I am doing a project related to php socket. My target is that I will show all client connected to server and show them in html file. However, if i put socket_accept() function in while loop, it won't break when no client connect. Now, I want to while loop only accept all client in 10 second and...
6 Apr 2017 by Jochen Arndt
Wrong approach. If you stop accepting for 10 seconds, clients may run into time outs. Think about what you want. With your actual code there may be also only one client connected at the same time. So "show all client connected to server" makes no sense. Because your communication is very...
10 Apr 2017 by Member 13072690
Thanks, I have done it by using socket_select function.
10 Jul 2018 by ranio
I am having issue while trying to connect via web socket to a url with wss protocol. The hosted url with http works fine when i try to consume from client with ws protocol. But with https i get below exception. I created a self signed certificate in IIS and was able to start server. But while...
3 Oct 2013 by chester_it21
dear all,master greetings to all,I am trying to build a WebSocket client, and his client should be able WebSocket connection to existing WebSocketServer ...My question is, how do I make webscoket Client with a WCF or his other (important still using dotnet technologies) ....whether...
4 Oct 2013 by Thomas ktg
Hi,I hope this article would give you some basic ideas on Writing WebSocket server and WebSocket Clienthttps://developer.mozilla.org/en-US/docs/WebSockets/Writing_WebSocket_server[^]
17 Jun 2015 by tslin89
Hello all, I am using autobahn websocket[^] to create communication between my server and android client. When I hosted my web socket on my site IIS and connect from my android, it is working fine.Site URL to connect: "ws://mysite.com/WSockets/WSHttpHandler.ashx?name=android".But when...
9 Sep 2015 by Member 11970398
i want to create a image slider using mvc razor viewhow to create side show in mvc razor html 5
10 Sep 2015 by Manoj Kumar Choubey
Please see following...
28 Nov 2019 by GeoFinex
Hi i am working on an autotrading financial WebApp whereas i am using their WebSocket api, below is the minimal javascript code... Each client have their specific auth token to execute trade on the broker server on their behalf, and the token is passed through the WebSocket request. But the...
25 Jul 2018 by ranio
I want to fetch and pass the imported SSL certificate as trusted while connecting to the web socket in c#. Currently I am using websocketclient but getting the SSL Certificate Exception even after importing. I need to fetch it and connect to server related to handshaking. The underlying...
28 Jul 2015 by Member 11870612
I have created a website. I am facing the problem like, the alignments are differing from Browser to Browser and also when minimising the window.
28 Jul 2015 by Salman _Memon
Go to that link i hope it will help you
19 Dec 2012 by sreeCoderMan
hi friendsthere is a item template in my gridview where in item template there is a textbox..in textbox some values are displaying but not from database it can be changed dynamicaly by the user my question is how to get the values inserted by the user in each row and display in...
20 Dec 2012 by VivekDuddempudi
Build the Item Template dynamically or Read the text box values and id from java-script and save it hidden fields then navigate to required page
4 Jul 2022 by Graeme_Grant
Here is how to pull the doneyears: //List listName = new List(); Dictionary> map = new Dictionary>(); foreach(JToken param in paramsArray) { string name =...
4 Jul 2022 by Jakobson 2022
I've found out how can be done after spending a while, through the while loop I hardcoded the last index number of child arrays, and then do the iteration over all, maybe there exists different solution for this, but for now this logic for me...
4 Jul 2022 by Richard MacCutchan
The paramsArray variable is an array of arrays, not an array of JSON objects. So you probably need something like: JArray paramsArray = (JArray)jObject["params"]; List listName = new List(); foreach(JToken param in paramsArray)...
12 Jan 2023 by kksingh.hrp
Step 1: dynamic response = JsonConvert.DeserializeObject(json); Step 2: JArray paramsArray = (JArray)JToken.FromObject(response); Step 3: foreach (JToken param in paramsArray) { CustomerRoot...
12 Jan 2023 by Jakobson 2022
Hello, currently I am working on WinForms application that has been communicating with API which is based on websocket as a transport protocol where each message is json encoded object. I want to loop through each array in params JArray, take...
1 Apr 2015 by tslin89
Hello, I want to implement an android application that will accept push notification from server. I am completely new to mobile development and I don't know where to start. Due to google search result, I know that this can be done using websockets. But in visual studio, when I try to install...
1 Apr 2015 by Peter Leow
Check this out: Push Notification For Windows, iOS & Android - Quick, Easy and Flexible[^]
26 Apr 2015 by Member 11644253
How to connect to secure websocket with valid certificate and basic authentication.i am using faye-websocket gem in my code.require 'faye/websocket'require 'eventmachine'EM.run { ws = Faye::WebSocket::Client.new('wss://aws.com/gateway') ws.on :open do |event| p [:open]...
2 Aug 2018 by ranio
I am doing handshaking via web socket connectivity. My message for handshake has reached server but the connection is not remaining alive or so. I need to maintain the connection state even after handshaking. I am using ClientWebsocket. Below is the exception got: The 'Connection' header value...