Questions tagged [websocket-sharp]

113 questions
0
votes
0 answers

WebSocket-Sharp + Socket.io - Unable to Connect

So I've seen some people having issues with sending/receiving messages from Socket.io with WebSocket-Sharp, but I'm not seeing any issues with just connecting. This is on a Windows 10 machine. From a browser, I have no issues connecting to the…
0
votes
0 answers

Is it possible to get Websocket Id when receiving the message from MessageEventArgs?

I am trying to find websocket connection Id or some unique data that I can use to store connections. WebSocketServer wss = new…
Alex
  • 51
  • 5
0
votes
0 answers

Websocket server is not starting without admin rights

My websocket server is not starting. I cannot connect. But if I run program with admin rights It's working. X509Certificate2 certificate = new X509Certificate2(Resource.UZCRYPTO); using (X509Store store = new…
0
votes
1 answer

Create secure websocket server in local machine

I'm trying to use a local websocket server in order to communicate between PWA and windows app. My problem is that pwa requires secure connections and it won't work with a regular websocket server. So my problem is mainly. How do I certificate my…
Ben
  • 1
  • 1
0
votes
3 answers

Send data to client OnMessage with WebSocket-sharp server

I've been trying to solve this simple problem, but I cannot make it work. I am using WebSocketSharp.Server. The code can be seen below. In my NetworkClass I have someData I would like to send to the client when a message is received. The problem is…
ChrisVaessens
  • 31
  • 1
  • 5
0
votes
0 answers

WebSocketSharp await/read for server response in client

I have some trouble figuring this out. I need to write an API server using WebSocketSharp, and client as well. I got the connection successful with exchanging messages, however, I cannot figure out a way to properly achieve a behavior like this: 1)…
0
votes
1 answer

websocket server and client using WebsocketSharp on localhost

I am trying to write a simple client-server application using WebsocketSharp on the same device (localhost) but I keep getting a "Not a Websocket handshake response. the client is set up like so: private const int _port = 555; private static…
ghg1995
  • 1
  • 1
0
votes
1 answer

C# WPF Websocket - Cannot established handshake to NGINX

Been using this client library: [Websocket Sharp][1] to implement my websocket client for WPF application. The problem is, if I used the SetProxy method of this library to connect with NGINX with no basic auth, I cannot establish a connection even…
Anonymous Duck
  • 2,942
  • 1
  • 12
  • 35
0
votes
0 answers

C# How can I set different proxy server for each connection?

I am coding a client in C# that communicates with my webserver with web sockets but I want each connection from the client to come from proxy IP, how can I do that?
0
votes
0 answers

Response header in websocket handshake C# .NET 4.7.2?

I am using the websockets with C# .NET 4.7.2., specifically the ClientWebSocket class within the System.Net.Websockets namespace. Is there any way to read the response headers during the handshake ? In Java or Swift you can get the response headers…
0
votes
0 answers

how to create web socket to consume mapmyindia API

I am new in websocket so my task is to create websocket sample for consuming mapmyindia API websocket will return information of vichal details so please help me to consume this API into websocket .. Really apricate your work.
0
votes
2 answers

WebSocket send and receive data asynchronously (using NuGet websocket-client)

I am struggling with the observer pattern with NuGet package websocket-client (https://github.com/Marfusios/websocket-client) The connection to the WebSocket server is stable and running. Every request has a request ID inside the payload. The client…
0
votes
0 answers

c# websocket-sharp can not connect socket .error "not Includes no Sec-WebSocket-Protocol header, or it has an invalid value"

I am trying to connect (with windows form application) to a socket which use sec-websocket-protocol for authentication . in browser everything is OK but when i try to simulate that connection with c# it fails with error Includes no…
mhKarami
  • 844
  • 11
  • 16
0
votes
0 answers

How to send Bytes completely via WebSocketSharp

I am making a audio chat program, So I tried to sending Audio bytes via web-socket first I did, I get audio bytes and send it on But it was failed(maybe there can't pass completely) second I tried is convert bytes to string with use BitConverter and…
Minwoo Yu
  • 360
  • 2
  • 13
0
votes
2 answers

Getting data with c # websocket

There is a websocket application made in c # of ftx stock exchange. It works fine on Console, but with WindowsForms, I can't transfer data onto textbox. Is there a way to do this? https://github.com/ftexchange/FtxApi
johnvayne
  • 79
  • 3
  • 8