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

Add support to cancel all async calls #138

Open rthery opened 3 years ago

rthery commented 3 years ago

Although WebSocket.cs supports it, it's not used at the moment.

Every async call made to Client.cs should be cancelable with the use of a CancellationTokenSource to better support error handling and improve player experience.

endel commented 3 years ago

Thanks for the suggestion @rthery, I think that'd be valuable indeed!