No more events after some time (websocket closing undetected?)
slybit opened this issue · 3 comments
Hello, I am using your nice project as part of a larger home-made alarm system and noticed that after some time (can be multiple weeks), the event stream simply stops. I assume that is because the websocket stream is somehow interrupted and not re-established.
My question:
Is there anything I can do in any of the events thrown by unifi-protect to (1) detect this has happened and (2) reconnect?
To Reproduce:
- Register an unifi-protect.on("message") listener
- Do a unifi-protect.login()
- Do unifi-protect.getBootstrap()
- Wait for the on("message") to stop being triggered
Logs:
The unifi-protect logs remain empty (no errors or anything are thrown)
@slybit - this issue is being automatically closed because it does not follow either the feature request or bug report issue template. The issue templates have been designed to help in the troubleshooting (or feature request) process. Please use them and populate it as completely as possible to streamline troubleshooting or feature request discussions.
Ow, I removed all the will retry
This issue is locked to prevent necroposting on closed issues. Please create a new issue for related support requests, bug reports, or feature suggestions.