ignoxx / SocketIO-GMS2-Extension

Socket.io extension for GameMaker: Studio 2 (HTML5)
https://ignoxx.dev/socketio
MIT License
45 stars 16 forks source link

fixing player not leaving lobby #16

Closed swompythesecond closed 1 year ago

swompythesecond commented 1 year ago

There is a problem with this example where the player objects sometimes is undefined so the server crashes to bypass this we need to put it in a try and catch but if that happens we still need to remove the player from our list, so I wrote a system that checks if the player is connected and if he isn't, he gets removed from the list.

swompythesecond commented 1 year ago

I will implement everything.