Sharing the invite killed the room
The constraint
Phones cut a page’s connections the moment you switch apps. Opening WhatsApp to send the invite link was enough to kill the room the link pointed to.
The resolution
The host now re-registers with the signalling server under the same room code whenever the link drops, and renews it after eight seconds in the background. Each tab carries an id, so a returning player is given their own seat and hand back. Thirteen end-to-end tests run rooms against a fake PeerJS to keep it that way.
“The act of inviting a friend was the thing that ended the game.”

































