sta / websocket-sharp

A C# implementation of the WebSocket protocol client and server
http://sta.github.io/websocket-sharp
MIT License
5.74k stars 1.66k forks source link

error when running server example #718

Open skywo1f opened 1 year ago

skywo1f commented 1 year ago

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|<>cDisplayClass70_0.b0|Operation is not supported on this platform. 1/11/2023 3:05:09 PM|Fatal|WebSocket.b176_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.<>cDisplayClass48_0.b__0(IAsyncResult ar)

liguyu commented 1 year ago

same problem here.