colyseus / colyseus-unity-sdk

⚔ Colyseus Multiplayer SDK for Unity
https://docs.colyseus.io/getting-started/unity-sdk/
MIT License
371 stars 102 forks source link

Enhancement/Bug 157 Adjustment #158

Closed mitchLucid closed 3 years ago

mitchLucid commented 3 years ago

Socket closure events now pass around the int code instead of the parsed enum value. This will cause errors anywhere that you have created custom _room.colyseusConnection.OnClose / _room.colyseusConnection.OnLeave events that are anticipating a WebSocketCloseCode argument rather than an int. The WebSocketCloseCode can still be obtained via WebSocketHelpers.ParseCloseCodeEnum(code)