NanderTGA / msgroom-server

A custom, better msgroom server.
GNU Affero General Public License v3.0
1 stars 1 forks source link

fix: socket.io reconnects create an invalid state #4

Closed NanderTGA closed 4 months ago

NanderTGA commented 4 months ago

When the server restarts, the socket.io client just waits until the server comes back online and reconnects, which gets you an invalid state of a user where they can see the incoming events but can't send any themselves. I have seen this before on other msgroom servers and it's pretty annoying, since you can't really notice disconnects or restarts as a user.

So here's how I'm going to fix this: