Questions tagged [websocket-sharp]
113 questions
2
votes
2 answers
WebSocket-Sharp doesn't respond to public IP address
I have a problem hosting WebSocket-Sharp on a public internet IP. Locally it works fine.
This problem occurs on Windows and Linux.
I do no receive a timeout or an HTTP status code, the page blocks immediately.
I'm 99% sure I have port forwarding set…

RobotRock
- 4,211
- 6
- 46
- 86
2
votes
0 answers
WebSocketSharp .onMessage on main thread? / handling in Unity?
I find it very difficult to find a simple reliable library to use, in Unity, for a simple websocket client. WebSocketSharp (ie, https://github.com/sta/websocket-sharp ) seems fine but many items are unexplained.
When incoming messages arrive,
…

Fattie
- 27,874
- 70
- 431
- 719
2
votes
1 answer
Unity - IBM watson and SendBird SDK, websocket-sharp conflicts with each other they both have the same Namespace
Development Environment:
Unity 2018.3.5f1
IBM Waston SDK: unity-sdk-3.4.1, unity-sdk-core-0.3.0
SendBird .NET SDK
Windows 7
Problem :
Both have the same name for websocket-sharp which causing conflicts with code, unable to use both in one…

Aaryan
- 51
- 7
2
votes
3 answers
How to send x509 certificate from client to server WebSocketSharp C#
I'm trying to send and validate SSL cert beetween client / server with WebSocketSharp
Server side
wss = new WebSocketServer(IPAddress.Parse("127.0.0.1"), 6070, true);
string _certificatePath =…

Marco Luongo
- 397
- 4
- 13
2
votes
1 answer
GDAX/Coinbase API Level3 orderbook - skipping messages
I'm using the GDAX API Websocket Stream to try and create a copy of the full LEVEL3 orderbook.
I've got a very simple implementation using WebSocketSharp and Im basically doing something like this.
private readonly WebSocket _webSocket = new…

Maxim Gershkovich
- 45,951
- 44
- 147
- 243
2
votes
2 answers
Websocket-sharp not raising OnOpen event upon opening websocket
I'm in the early stages of writing a program to interface with an IP camera. A bit of code I wrote yesterday worked, but when I came back to it this morning it didn't. I know, I probably did something, but to the best of my memory it worked when I…

H.Ramsey
- 43
- 1
- 10
2
votes
0 answers
How to avoid "SocketException: An address incompatible with the requested protocol was used."
I'm using websocket-sharp as a webserver in a project. On Windows I create 2 HttpServers like this
HttpServer s1 = new HttpServer("http://[::0]:8080") // IPv6
HttpServer s2 = new HttpServer("http://0.0.0.0:8080"); // IPv4
This works on all the…

gman
- 100,619
- 31
- 269
- 393
2
votes
1 answer
How to Send File to SignalR hub From websocket-sharp Client?
We are using the websocket-sharp in one of our applications which establishes a websocket connection with our SignalR Hub on the server, we are able to send the text messages and receive the response for the same but unable to post a byte[].
Code…

Saurabh Sashank
- 280
- 1
- 5
- 18
2
votes
1 answer
How to send data from web socket server to client?
I started using WebSocketSharp to create a simple WebSocket Server. Everything works great with this simple code:
var service = new WebSocketCustomerImageService();
var serverSocket = new…

Andres
- 6,080
- 13
- 60
- 110
2
votes
1 answer
Speech-to-text using ibm-watson service C#
I am trying to send an audio file (.wav) for speech-to-text using ibm-watson service and websocket-sharp.I'm doing it in an asp.net mvc action by using a sample .wav file of 80kb. While following this tutorial speech-to-text/websockets.
I'm doing…

Ali Baig
- 3,819
- 4
- 34
- 47
2
votes
1 answer
WebSocketSharp - Sending file
I can see WebSocketSharp implements an overload for Send(FileInfo file).
https://github.com/sta/websocket-sharp/blob/master/websocket-sharp/Server/WebSocketBehavior.cs
If I use this to send a file from the server, how can I receive and write this…

Mike
- 1,532
- 3
- 21
- 45
2
votes
1 answer
How to disable forced continutation frames using websocket-sharp in C#
When using the WebSocket-Sharp library in C# to build a WebSocket client, I am finding that sending messages doesn't work properly.
If I send the server a particularly long string as text frame, the WebSocket-Sharp library truncates it to 1,016…

blizz
- 4,102
- 6
- 36
- 60
1
vote
1 answer
Sending base64 string via websocket
I am using ZKT Ecco ZK4500 fingerprint equipment. The hardware itself does not provide any web api, but I need the user's fingerprint to be sent to the server on my ReactJS client web application.
I wrote a small utility in c# windows forms that…

Bakhtovar Muzaffarov
- 13
- 3
1
vote
1 answer
websocket-sharp - OnMessage callback is not running in the main thread
I have a WPF (.NET Framework 4.6) application that uses websocket-sharp (version 3.0.0) to create a websocket server.
I have a WebsocketServer and using EventHandler to tranfer event to MainWindow.xaml.cs but it not working. The MainWindow.xaml.cs…

Duc Nguyen
- 59
- 6
1
vote
0 answers
Client Creation using WebSocketSharpAPI - C#
Hi StackOverflow Members,
I have created an HTTP server using WebsocketsharpAPI https://github.com/sta/websocket-sharp.
Here I have created an HTTP address = "http://localhost:0001/MoviePage";
I am then, Initializing and creating the Httpserver and…

Dheena
- 23
- 4