Click here to Skip to main content
15,890,185 members
Everything / WebSocket client

WebSocket client

WebSocket-client

Great Reads

by Darko Jurić
WebSocket RPC library for .NET with auto JavaScript client code generation, supporting ASP.NET Core.
by SleepyCrat
Create a small "minigame" using asp .net core 3.0, Angular, and websockets implemented using vanilla javascript.

Latest Articles

by SleepyCrat
Create a small "minigame" using asp .net core 3.0, Angular, and websockets implemented using vanilla javascript.
by Darko Jurić
WebSocket RPC library for .NET with auto JavaScript client code generation, supporting ASP.NET Core.

All Articles

Sort by Score

WebSocket client 

14 Jan 2018 by Darko Jurić
WebSocket RPC library for .NET with auto JavaScript client code generation, supporting ASP.NET Core.
18 Feb 2020 by SleepyCrat
Create a small "minigame" using asp .net core 3.0, Angular, and websockets implemented using vanilla javascript.
11 Jun 2019 by Fahid Zahoor
hi every one please any one tell me how can i create connection with websocket in our c# application. Actually i want to implement Card payment system in our EPOS application. so i need to create connection with websocket but i don't know how can i do it. i also found one link of webscoket in...
11 Jun 2019 by RickZeeland
See websocket library here: GitHub - Marfusios/websocket-client: .NET/C# websocket client library[^]
16 Feb 2024 by Andre Oosthuizen
You have basically answered your own question without knowing it - Quote: Then I made my consumers.py (here I'm a little bit confused, isn't it better to refer to my room unique_id instead of name, since the ID is unique and not the name in my...
1 Jan 2018 by Member 13602102
My node.js server randomly shuts down after a client has connected from a web and then closes the tab (simple disconnection). The server: var websocketServer = require("ws").Server, server = new websocketServer({port: 9000}); var date = require("./modules/date"); console.log("[" +...
21 May 2018 by ranio
I am getting the exception of operation not supported in WCF Test Client. I am trying to set a Client Server Communication over the Web Socket. Server Side I have set a WCF Service but on running the svc file I am getting the error mentioned "Operation not Supported in WCF Test Client" What...
23 May 2018 by ranio
I want to access the response value with in the WCF callback handler while communicating with the WCF Service hosted as server from Client Side in asp.net with c# using Visual Studio 2017. I am trying to communicate client server side over a web socket. I have hosted the WCF Web Service...
3 Jul 2018 by ranio
I want to connect via web socket in asp.net with c#. I am having client project as a windows application and server project hosted as windows service with local system mode. I am unable to connect the client to server. If server project is a windows application no such issue. What I have...
5 Jul 2018 by ranio
I want to avoid trimming of data send from a client to server interface via web socket. I am doing the connectivity and message sending with the client and server interface as separate Windows Application projects. I am able to connect with the server from client while sending smaller data....
5 Jul 2018 by ranio
I am getting the end of message send from client to server side as false via web socket in asp.net with c#. I am sending a large data via web socket. For doing the same i am adding the bytes to the buffer while receiving the message. What I have tried: Core Code is as below: ...
16 Jul 2018 by ranio
I want to split a buffer of a large data into chunks while using websocket in c#. I am trying to send over a web socket but I am not getting the entire data. byte[] buffer = encoding.GetBytes(stringtoSend); I want to split it as chunks to the server side from client. What I have tried: ...
16 Jul 2018 by Jochen Arndt
If you have problems at the receiving side, sending data in chunks will not solve them. It will make your code more complex and might introduce new problems. Try to solve the receiving problems instead. I can only guess here: You are sending a string and have problems to detect the length when...
30 Jun 2020 by Member 12242717
I have try some simple code to receive message respond from server connecting through web socket but i cant receive any message from server. But when i test it using online web socket connection it shows the message. I want async websocket for...
30 Jun 2020 by OriginalGriff
using is a very specific keyword in C#, it's used to control teh disposal of items when they ar efinished with. Writing this: using (MyClass mc = new MyClass) { ... } Is the equivelant of writing this: { MyClass mc; try { mc = new...
15 Jul 2020 by triyul22
I have 2 clients in asp.net with difference by url: localhost:port/api/send and localhost:port/api/new I'm using websocket and trying to send the message that "send-client" send (sorry for repetitiveness), but catch an exception The server...
15 Jul 2020 by Garth J Lancaster
Not sure what you mean by Quote: when trying to connect to another client uri but anyway, looking at the code you've got, I take it you've verified the server is running and a netstat -an | more shows 'something' listening on port 49350. If...
26 Aug 2020 by bigbits
does anyone know how to avoid WebSocket\ConnectionException from a receive_fragment error? I send a json through a websocket and added a while to receive the response, but it seems that I only get a fragment of it and throws a error afterwards. ...
8 Sep 2020 by W Balboos, GHB
The error is because your loop, even if you had the $x++ counter activated, could (and does) still try to read when there's no data to be read. Your condition should test about the readability of the data [ $client->receive(); ] and not just...
25 May 2021 by amsga
Hi All, I am trying my hand with Websockets to get data out from a particular URI. From what I understand is that there are no Web API endpoints, just a single URI with various forms of JSON data coming through from the server side. I was...
28 Jun 2021 by dilsdgr8
My websocket server URL is localhost/webstream/wsocket Iam trying to create a C++ websocket client that connects to this server using boost. tcp::resolver resolver{ioc}; _pws = new websocket::stream(ioc); ...
25 Oct 2022 by Dave Kreskowiak
You're going to have more load on the server no matter what you do. The data is always going to come from the server. You either start up a timer in your client javascript and call an API method to get the data, or you can setup a SignalR...
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...
16 Feb 2024 by gsemerdz
I'm trying to establish a connection with my Django backend and Flutter code using WebSockets, but unfortunately I'm unable to do so, went through many articles and videos and everyone is basically doing the same without receiving an error.....
28 Jun 2018 by ranio
sorry for the repost. Here the case is the server response is coming but only after sending the client message send second time around server response coming. Hence posted on the same.
25 Oct 2022 by ravithejag
I want to implement a solution where my web page has to be refreshed whenever there is an new entry in our Influx/SQL Database. In current scenario we are refreshing the data every 5 seconds over WEB API built on C# , due to frequent calls to...
26 Jun 2018 by ranio
I want to communicate via web socket in c# (kind of handshaking or so). Currently I hosted a wcf service . But on communicating i am getting the exception as below. Access denied. http://test-417vm2/CBWSI_Stub/ is the wcf service hosted with default document service1.svc and it is showing...
28 Jun 2018 by ranio
I want to send response messages from a server using web socket in c#. But am getting the exception as below: Object reference issue. From client to server i am able to send message using client web socket. But from server I am unable to send the message from client. But am getting...
8 Sep 2020 by bigbits
I am trying to do this in php websocket.onmessage = function(evt) { console.log("Message Received: " + evt.data); }; Can anyone help ? What I have tried: My php code: // SEND TO THE SERVER THE JSON $client->send(...