Re:A multiplayer board game in Rust and WebAssembly
by silasrude on Saturday June 27, 2020 @02:41PM
(#23663725)
Will the rooms stick around if people leave the page in the middle of a game? My wife loves the game btw. I enjoy it as well but I appreciate the stack behind it more. Ty for your efforts.
Re:A multiplayer board game in Rust and WebAssembly
by mkeeter on Saturday June 27, 2020 @03:25PM
(#23663998)
I'm glad that your wife enjoys the game! At the end of the day, it's meant to be played and shared, rather than just existing as an interesting software artifact.
The rooms persist as long as there's at least one connected player in them. Exiting + rejoining a room under the same name will let you continue to accumulate points under that name.
(Rejoining isn't perfectly seamless: you won't necessarily be dealt the exact same hand, and if you exit + rejoin while it's your turn, your turn will be skipped)
I also appreciate the load testing! For the curious, we're at 30 open rooms, and I'm seeing:
- 0.0 server load
- 2.6 MB of RAM used by nginx + its worker process
- 4 MB used by pont-server