Skip to content

Implement persistent room ids for PWAs#10

Open
schlagmichdoch wants to merge 5 commits into
yjmp14:masterfrom
schlagmichdoch:wulingate_make_room_persistent_on_pwa
Open

Implement persistent room ids for PWAs#10
schlagmichdoch wants to merge 5 commits into
yjmp14:masterfrom
schlagmichdoch:wulingate_make_room_persistent_on_pwa

Conversation

@schlagmichdoch
Copy link
Copy Markdown

This pull request implements indexedDB to make rooms persistent.

When the tab is closed the room id is saved in a indexedDB store and is retrieved when the page is loaded again.
This way the user does not have to enter the room manually everytime the page is loaded.
When the room is left the room id is deleted in store.

This is especially useful with PWAs as entering a room with an url parameter as implemented with #9 is not suffienct with those. PWAs are always installed with a specific start url which can not be changed on installation.
With this PR merged, users can simply reopen their PWA to automatically enter the room they joined last.

As a secondary effect all instances opened in one browser after an instance entered a room are now opened automatically in the same room. This does not affect instances that are already in a room.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant