I rely on LiveQuery for many projects: it’s the strongest Parse feature.
I use LiveQuery client’s and subscriptions’ on open, close, and error events to detect WebSocket connection changes. Unfortunately, if the client (or the browser) is in background, I’m not receiving any close or error event.
For example on a web app, if you close your laptop and reopen it after a few hours, close/error event. is not fired and the client doesn’t immediately know that the connection is closed. Same issue on mobile.
What is the best way to force check the WebSocket status or renew the subscription?
Thanks