endel / NativeWebSocket

🔌 WebSocket client for Unity - with no external dependencies (WebGL, Native, Android, iOS, UWP)
Other
1.13k stars 155 forks source link

Support for application specific close codes? #47

Open tottaka opened 3 years ago

tottaka commented 3 years ago

Hi, I was wondering if there are any plans on supporting the generic application specific close codes 4000 – 4999? Also, is there a way to get the close reason data?

endel commented 3 years ago

Hi @tottaka, this has been introduced recently on the WebSocket implementation embedded with Colyseus: https://github.com/colyseus/colyseus-unity3d/pull/158/files

Would be nice to move that implementation to this repo as well