pokemonAutoChess icon indicating copy to clipboard operation
pokemonAutoChess copied to clipboard

Add automatic reconnect logic to game

Open ComplexRobot opened this issue 1 year ago • 4 comments

The simplest code needed for an automatic reconnect.

Directly reconnects the web socket without creating a new room instance or affecting any other game system.

ComplexRobot avatar Sep 09 '24 07:09 ComplexRobot

It looks like a patch above colyseus. Could be something to discuss on Colyseus discord, I'm sure this problem has been tackled by other people. Overriding colyseus code and using semi-public API is a straight no for me though.

sylvainpolletvillard avatar Sep 09 '24 08:09 sylvainpolletvillard

It looks like a patch above colyseus. Could be something to discuss on Colyseus discord, I'm sure this problem has been tackled by other people. Overriding colyseus code and using semi-public API is a straight no for me though.

Okay, then. I worked really hard on this and it works well, so this makes me very sad, but it's your decision.

ComplexRobot avatar Sep 09 '24 08:09 ComplexRobot

I don't want it to break as soon as i update colyseus

sylvainpolletvillard avatar Sep 09 '24 08:09 sylvainpolletvillard

I don't want it to break as soon as i update colyseus

I understand. In my defense, all the changes are in their own file, so if it breaks it can be fixed by deleting a single line of code.

ComplexRobot avatar Sep 09 '24 08:09 ComplexRobot