assemblee-virtuelle / assemblee-virtuelle/semapps
getOrCreateWsChannel: recreate channel after it expires
- Dominant language
- TypeScript
- Stars
- 103
- Forks
- 14
- Avg merge
- 1m
- Merged PRs (30d)
- 2
Description
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](https://github.com/activitypods/activitypods/blob/4143beb521f0de29ae63343d67860df992cc45f9/app-framework/react/src/components/BackgroundChecks.tsx#L84-L87) event), we should probably recreate a WebSocket channel.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.