mibpl / StreetViewGame

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handle player disconnecting and reconnecting

anula opened this issue · comments

Currently when player disconnects (eg. refreshes page) their 'connected' state for the game is set to false. Make sure it is set back to true when they reconnect.

Relevant docs: https://firebase.google.com/docs/database/web/offline-capabilities#section-connection-state

We decided drop the whole "connected" field completely for now.