Skip to content
This repository has been archived by the owner on Nov 27, 2022. It is now read-only.

UpdateTracter to reconnect and re-subscribe on close events #29

Closed
jholleran opened this issue Mar 11, 2020 · 0 comments · Fixed by #30
Closed

UpdateTracter to reconnect and re-subscribe on close events #29

jholleran opened this issue Mar 11, 2020 · 0 comments · Fixed by #30
Assignees
Labels
bug Something isn't working

Comments

@jholleran
Copy link
Contributor

Motivation

UpdateTracter currently will not reconnect, and re-subscribe to resources if the websocket connection is closed unexpectedly or closed because of no recent traffic.

This would allow applications to continue to get notifications even after network connection drop issues, without having to do a full page refresh.

Proposal

Reconnect and re-subscribe on a webSocket.onclose event. This should retry a number of times with with exponential backoff.

Additional info

Another useful functionality could be to alert the app if its unable to make connect so the app could display a message to the user that its unable to connect.

@RubenVerborgh RubenVerborgh added the bug Something isn't working label Mar 11, 2020
@jholleran jholleran changed the title UpdateTracter to reconnect and and re-subscribe on close events UpdateTracter to reconnect and re-subscribe on close events Mar 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants