Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getOrCreateWsChannel: recreate channel after it expires #1308

Open
srosset81 opened this issue Sep 13, 2024 · 0 comments
Open

getOrCreateWsChannel: recreate channel after it expires #1308

srosset81 opened this issue Sep 13, 2024 · 0 comments
Assignees
Labels
easy Easy issue

Comments

@srosset81
Copy link
Contributor

Currently, once a WebSocket channel expires, the frontend just stops listening and no message is provided to the user.

https://github.com/assemblee-virtuelle/semapps/blob/master/src/frontend/packages/semantic-data-provider/src/notificationChannels/subscribeToUpdates.ts#L135-L140

If the tab is visible (!document.hidden), or when it becomes visible again (using the visibilitychange event), we should probably recreate a WebSocket channel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy Easy issue
Projects
None yet
Development

No branches or pull requests

2 participants