colyseus / colyseus-construct3

⚔ Colyseus Multiplayer SDK for Construct 3
https://docs.colyseus.io/getting-started/construct3-client/
MIT License
22 stars 12 forks source link

Construct SDK throws error if the server is offline and Get Rooms is called #24

Closed Alaadel closed 1 year ago

Alaadel commented 1 year ago

Hello,

If the server is offline, and GetRooms is called, the SDK throws an error. It should be more graceful and maybe fire OnError instead.

Better yet is to have a check IsServerOnline before we call GetRooms or other functions.

This is the error in console: preview.construct.net-1681742453591.log

image

Thank you

endel commented 1 year ago

Thanks for reporting @Alaadel, I'm moving this issue to the correct repository as this relates to colyseus-construct3