Kruptein / PlanarAlly

A companion tool for when you travel into the planes.
https://www.planarally.io/
MIT License
400 stars 73 forks source link

bug(Socket): Fix location change not properly leaving sio room #1283

Closed Kruptein closed 1 year ago

Kruptein commented 1 year ago

PA uses websockets (i.e. socket.io) for communication between client and server. When a player enters a game they join a sio room for the game as a whole as well as a room for the specific location they are currently in. When changing locations they're supposed to leave the room associated with the previous location as events for that location are no longer interesting to the client. (e.g. shape movements)

This was however no longer behaving correctly, causing you to receive messages from all locations you visited (in the current browsing session).