Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We need a way for users to reconnect to their serverside session if their connection drops or they leave the page and return. We use sessionStorage so that the session is not shared across tabs as it would be for localStorage. We receive the "session:set" event from the server which tells us the server has save the session and now it's time for the client to do the same. We use the "DOMContentLoaded" event to attempt to read the sessionId from localStorage, if it exists then we connect. If it doesn't exist the user will have to manually connect by entering their name. Co-authored-by: Ynda Jas <[email protected]> Co-authored-by: George Eaton <[email protected]> Co-authored-by: Liz Daly <[email protected]>
- Loading branch information