Questions tagged [websocket4net]

49 questions
11
votes
1 answer

How to use proxies with the WebSocket4Net library

I'm building a secure WebSockets client using C# and the WebSocket4Net library. I would like for all my connections to be proxied through a standard proxy. This lib uses the SuperSocket.ClientEngine.Common.IProxyConnector to specify a websocket…
blizz
  • 4,102
  • 6
  • 36
  • 60
8
votes
1 answer

WebSocket4Net simple example fails with "Operation already in progress"

I'm trying to get a simple test going with Xamarin and WebSocket4Net but it fails on Open() with "Operation already in progress". Example code below: using Xamarin.Forms; using WebSocket4Net; using System; using SuperSocket.ClientEngine; namespace…
4
votes
0 answers

Unable to connect to the remote server using ClientWebSocket

I'm trying to connect to a web socket server on localhost:9222 using this C# code: var ws = new ClientWebSocket(); var uri = new Uri("ws://localhost:9222/X/Y/Z", UriKind.Absolute); await ws.ConnectAsync(uri, CancellationToken.None); On that last…
Markus Johnsson
  • 3,949
  • 23
  • 30
4
votes
1 answer

WebSocket4Net in SilverLight

I am trying to create a WebSocket client through WebSocket4Net with port 4503.However i could see the the WebSocket status only as "Connecting" as it is neither raising any exceptions nor proceeding further.I was able to throw the Exception OnError…
Akshaya
  • 41
  • 3
4
votes
1 answer

Can you specify an activity timeout for WebSocket4Net websocket

Opened a WebSocket using a WebSocket4Net client against a relatively quiet server. After 4 minutes the socket is receiving a close message. After 4 minutes the socket is receiving a close message if no other message activity is received on the…
Canda
  • 61
  • 5
3
votes
1 answer

Connect node.js based socket.io WebSocket server from a C# program

I need to connect Node.js based WebSocket from a C# windows form code Node module used https://github.com/Automattic/socket.io I am using superwebsocket and WebSocket4Net using SuperSocket.Common; using SuperSocket.SocketBase; using…
Dickens A S
  • 3,824
  • 2
  • 22
  • 45
3
votes
1 answer

Why my websocket connection is getting closed when I receive big json messages?

I'm developing a windows phone 8 application using a web-socket from websocket4net. I send a json message and I got back a a message with a list of objects from a service. When this list is bigger (it contains more objects thus the length is bigger…
Liviu Sosu
  • 1,381
  • 3
  • 15
  • 26
3
votes
1 answer

How to disconnect from socketio4net

I have a application that connecting from c# client to node.js server in c# client I am using socketio4net and websocket4net in server I using nodejs and socket.io when I close my program (c#), disconnect event was not sent to server. so I got…
John Nguyen
  • 711
  • 6
  • 21
2
votes
0 answers

Why is WebSocket4Net closing the connection with 1011 error code

I have a Python 3 websocket server, it works fine with nodejs client wscat: %> wscat -n -c ws://192.168.154.200:11111 connected (press CTRL+C to quit) < Received PING < Received PING > your message When I try to build another client with…
daisy
  • 22,498
  • 29
  • 129
  • 265
2
votes
1 answer

What is difference between WebSocket4Net MessageReceived or DataReceived event?

What is the difference between WebSocket4Net's MessageReceived or DataReceived events?
Deep Sinha
  • 61
  • 5
2
votes
1 answer

Using client certificate with WebSocket4Net

My server is a running using SuperWebSocket with the following code for the server: var server = new WebSocketServer(); var config = new ServerConfig(); config.Port = 4015; config.Security = "Tls"; config.Certificate = new CertificateConfig{ …
2
votes
1 answer

WebSocket4Net - The software is missing from your system. You may also have to configure it after installation

I've been trying to use Apache Cordova in Visual Studio 2015 CTP, but I'm getting error: "WebSocket4Net, The software is missing from your system. You may also have to configure it after installation.". I've tried: Reinstall Visual Studio 2015 (and…
Cezary Tomczyk
  • 584
  • 1
  • 7
  • 14
2
votes
3 answers

Not able to receive message in WebSocket client

I am using websocket4net to create a WebSocket client in C# and communicate with a server. I am able to send data, but not able to receive the reply that the server is sending back. The Client_MessageReceived is not triggered at all. I am able to…
Manoj
  • 5,011
  • 12
  • 52
  • 76
1
vote
1 answer

Websocket4Net only receive reply for the first message

I'm connecting to a server using Websocket4Net, when I send a message, I receive the reply for that message, when I send a second message, I do net get the reply! When I restart the connection, and send the second message again, I receive the…
Imad Abu Hayyah
  • 434
  • 4
  • 13
1
vote
0 answers

WebSocket4Net Error - HTTP /1.1 200, then the connection is closed

I have a problem with WebSocket4Net where I get error when opening a connection, and the connection is closed then. The problem as follow: I connect using the following code: Dim objWebSocket As WebSocket objWebSocket = New…
Ali Ahmad
  • 11
  • 1
1
2 3 4