a83f3b675e
video-provider's current ping-pong is as good as nothing in 2.5+. We were counting on Meteor's (and consequently the component's mount state) before 2.5 to act as a "heartbeat" as far as the socket is concerned. The ping-pong served only to sustain traffic for finnicky, traffic-dependant firewall. Since 2.5, the component's state is _kind of_ detached from Meteor's - which means it won't unmount when Meteor disconnects. That causes the video-provider websocket to lose its borrowed heartbeat and leads to a bunch of reconnectiong inconsistencies, the worst of them being a stuck, useless signaling socket that will cause cameras not to work until a client refresh. This commit does the following: - Implements actual heartbeat checks to trigger signaling socket reconnects when necessary, all within the scope of video-provider - Remove borked, eons old 'offline'/'online' event handlers: they were causing unnecessary camera drops AND causing video-provider to generate a stuck signaling socket - Properly catch WebSockets.send errors |
||
---|---|---|
.. | ||
api | ||
startup | ||
ui | ||
utils |