WebSocketListener
WebSocketListener copied to clipboard
A lightweight and highly scalable asynchronous WebSocket listener
If I do a javascript ws.close(); from the client, the server never seems to see it. The earlier version of vtortola 2.2.0.3 seems to work. A .close() on the client,...
1. ... while(webSocket.IsConnected && !cancellation.IsCancellationRequested) { try { var messageText = await webSocket.ReadStringAsync(cancellation).ConfigureAwait(false); ... messageProcess(messageText) ; await webSocket.WriteStringAsync(messageText, cancellation).ConfigureAwait(false); ... so: during the messageProcess () - can be with await...
How do i know when a client closes its socket connection? ``` public async Task AcceptWebSocketsAsync(WebSocketListener server, CancellationToken cancellation) { await Task.Yield(); while (!cancellation.IsCancellationRequested) { try { var webSocket =...
Hi Denis, I've finally looped around to convert from Val's code base to yours. I'm encountering a problem when I attempt to run using the rx code. When the message...
hi, I am trying to test the echo-server sample and web-client sample on the same computer which is a Mac and I see that the csproj files have a .net...
I'm using your `WebSocketListener` the following way: ```c# class Program { static void Main(string[] args) { CancellationTokenSource cancellation = new CancellationTokenSource(); var task = Task.Run(() => RunServer(cancellation.Token)); Console.WriteLine("Press any key...
Hi, I'd like to request a few small enhancements to the HttpFallback functionality. Currently, it only supports GET request, all other requests such as HEAD, OPTIONS or POST end with...
Whenever I try to establish a secure connection `(wss://localhost:49475)` the server shows this error: `Error Accepting clients: Not GET request` **The server establishes the connection after that error**, and I...
Hey, just wanted to see if Dual Mode was supported for the server and if so, how to enable? Use case here is we want to be able to handle...
Hello @deniszykov maybe i missed it but is it possible to get the total bytes sent/received by the listener (or better, for each client) **including** the frame headers (without it's...