kipraske / web-brogue

Play brogue in a web browser
GNU General Public License v2.0
20 stars 17 forks source link

Users can have multiple brogue instances #18

Closed kipraske closed 9 years ago

kipraske commented 9 years ago

The design of this 1 user to 1 socket to 1 brogue process. Well it turns out that if you open up two windows, you end up with a new socket and thus access to a new brogue instance. But then, some weird things can start happening. For example - the way users are kept track of there is only one entry for a user with one session id and process. If someone has two processes, the first one will be hidden from everyone.

I see now why DCSS allows only one game instance at a time now - so if you log in again as the same user you can just take control of where you are.

In short, we should probably prevent people from spawning two brogue processes.

kipraske commented 9 years ago

Complete now - now you get an option to mirror the current instance or to kill your process.