jchristn / WatsonWebsocket

A simple C# async websocket server and client for reliable transmission and receipt of data
MIT License
277 stars 53 forks source link

Disconnect by custom CloseCode and reason. #93

Closed ilsnk closed 2 years ago

ilsnk commented 2 years ago

The value must be an integer: either 1000, or else a custom code of your choosing in the range 3000-4999. If you specify a code value, you should also specify a reason value. More info: https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/close

jchristn commented 2 years ago

Thank you @ilsnk ! Merging and integrating now!

jchristn commented 2 years ago

NuGet: https://www.nuget.org/packages/WatsonWebsocket/2.3.4 Commit: https://github.com/jchristn/WatsonWebsocket/commit/dddeb21f0d6a2b0da2cafa2e68fba261e2849108

Thanks for your contribution! I also added you to the README. Cheers, Joel