sta / websocket-sharp

A C# implementation of the WebSocket protocol client and server

Home Page:http://sta.github.io/websocket-sharp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error when running server example

skywo1f opened this issue · comments

The server example starts fine, but as soon as someone sends it a message, it crashes with this error:

1/11/2023 3:05:09 PM|Error|<>c__DisplayClass70_0.b__0|Operation is not supported on this platform.
1/11/2023 3:05:09 PM|Fatal|WebSocket.b__176_2|System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Net.Sockets.NetworkStream'.
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
at WebSocketSharp.Ext.<>c__DisplayClass48_0.b__0(IAsyncResult ar)

commented

same problem here.