websocket-sharp icon indicating copy to clipboard operation
websocket-sharp copied to clipboard

error when running server example

Open skywo1f opened this issue 2 years ago • 1 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.<receiveRequest>b__0|Operation is not supported on this platform. 1/11/2023 3:05:09 PM|Fatal|WebSocket.<startReceiving>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.<ReadBytesAsync>b__0(IAsyncResult ar)

skywo1f avatar Jan 11 '23 20:01 skywo1f

same problem here.

liguyu avatar Jan 14 '23 05:01 liguyu