Inf-Devs / procyon_skies

A game server, just like one of the .io games. Enjoy blasting each other.
1 stars 1 forks source link

Randomly disconnects #8

Open laifrank2002 opened 5 years ago

laifrank2002 commented 5 years ago

Sometimes the player disappears and randomly disconnects from server even when tab is open.

laifrank2002 commented 5 years ago

image Happens multiple times for some reason... Yet still can move around and shoot, yet bullets do nothing.

Clocks-in-a-Cooler commented 5 years ago

Hmmm... Websockets disconnect randomly with network issues. We remember this from colour_chat. The way the server is set up is that when the player disconnects, the event listeners on the server (for kills, etc) are removed. But nothing happens when the player reconnects.

You know what: I see if I can fix this.

laifrank2002 commented 5 years ago

The problem happens when the player disconnects n times, for some reason can still move, can shoot, but projectiles not hitting. That... shouldn't be happening. It's really weird. The disconnect message will refires like 10 times...

Clocks-in-a-Cooler commented 5 years ago

I have no idea what this can be, if I'm honest. I'll see if I can add a reconnect event handler.