Questions tagged [websocket4net]

49 questions
1
vote
1 answer

Chrome remote debugging Basic Authentication

How can I do a basic authentication via chrome remote debugging? That is I have a chrome running in remote debug like this chrome.exe –remote-debugging-port=9222 then I use WebSocket4Net to comunicate with chrome. I would like to automate the basic…
1
vote
0 answers

Connecting to GameWisp Singularity using WebSocket4Net results in failed handshake? C#

I am trying to connect a client to the GameWisp Realtime API using WebSocket4Net. My connection code looks like this: public void Connect(string OAuth) { LoginData login = new LoginData(GAMEWISP_CLIENT_ID, GAMEWISP_CLIENT_SECRET); …
AndideBob
  • 150
  • 1
  • 2
  • 9
1
vote
0 answers

C# websocket client using websock4net

I need some samples C# codes to make client program like 1.When I click login button a function connect to binary.com using given api token and return balance in a label box in a form , ( sample codes here https://developers.binary.com/demos/ )…
ssoftware
  • 11
  • 1
  • 2
1
vote
1 answer

WebSocket4Net unable to connect to proxy

Try to connect WebSocket4Net to proxy so that can debug in fiddler. However, hit exception that the remoteEndPoint is null in Connect method in SuperSocket.ClientEngine.Proxy when trigger .Open() method. var proxy = new HttpConnectProxy(new…
superhuman1314
  • 242
  • 2
  • 11
1
vote
1 answer

Is it possible to use UDP with Web Sockets instead of TCP

I have a C# desktop app and a C# Server console app. The C# desktop client app uses WebSocket4Net and my C# server app uses Fleck. Am I right in assuming that it uses TCP protocol. If so, can I get it to use UDP protocol? The reason I asking this is…
Andrew Simpson
  • 6,883
  • 11
  • 79
  • 179
1
vote
0 answers

WCF send message to client

I have simple WCF service and simple console application. Console application using WebSocket4Net to receive message's from service. But when services running application do not receive anything from service. Why? How to force service send…
A191919
  • 3,422
  • 7
  • 49
  • 93
1
vote
2 answers

Websocket4Net Send Multiple messages

I'm having a problem using WebSocket4Net library. I have the event websocket_opened and when this event is raised on open if I don't send any messages I have an Exception System.Exception : You must send data by websocket after websocket is …
JuanDYB
  • 590
  • 3
  • 9
  • 23
1
vote
1 answer

Server did not receiving messages

I'm writing a websockets-client. I have two problems : When I close a window of my application a server goes down Server did not receiving messages but Client always receives a greeting message from server. System.Exception : You must send data…
Serg
  • 85
  • 1
  • 12
0
votes
0 answers

vb.net WebSocket4Net with proxy or socks5

I use vb.net trying connect websocket with proxy websocket = New WebSocket(compSocketURL & token, "", cook, , useragent, gencmd("origin"), WebSocketVersion.Rfc6455) 'WebUtility.UrlEncode(token) Dim myProxy As New…
0
votes
0 answers

Connecting to Websocket on shared hosting when port is blocked

I built a program in c# (asp.net) that connects to wss://stream.binance.com:9443/ws using WebSocket4Net, and gets ticker data which is public. My application runs fine on localhost, but on my hosting provider I get an error "An attempt was made to…
0
votes
0 answers

WebSocket Connection failed with socketerror

Client initiated the websocket connection TLS handshake is passed and Application data layer has started . I Can see first application data is sent from client to server and the respective Ack and then from server to client and respective Ack. Then…
0
votes
1 answer

Trouble establishing WebSocket4Net connection with Xamarin.Forms Android project

We've recently reorganized our socket connections to have them use more shared code. I currently have the iOS project able to connect to the web socket and respond to events but I haven't been successful yet with the android project. It will try to…
Carr O'Connor
  • 139
  • 10
0
votes
0 answers

How can i convert CookieContainer to KeyvaluePair?

I wonder how can i CookieContainer to a KeyvaluePair, i got cookies from a website through HttpWebrequest. Now i want paste it to websocket4net. Please ! see the image below Dim logincookie As CookieContainer enter image description here
0
votes
1 answer

How to call Server Events (nodejs socket.io) from C# WebSocket4net

I am setting up C# websocket client for server implemented in nodejs(using socket.io). Using [Websocket4net]:https://github.com/kerryjiang/WebSocket4Net. My code is able to connect with socket server but WebClient.Send("message") does not invoke…
Bhushan Gholave
  • 157
  • 2
  • 9
0
votes
0 answers

WebSocketSharp returning "Input string was not in a correct format"

I have a c# client that I am trying to connect to a websocket server. Using the Chrome extension "Simple Web Socket Client", I can connect, and send commands ok to the websocket server so I know the server is working ok and it is a commerical…
rukiman
  • 597
  • 10
  • 32