Flowdock
method

setup_heartbeat_timer

Importance_1
v5.1.7 - Show latest stable - 0 notes - Class: Connections
setup_heartbeat_timer() public

WebSocket connection implementations differ on when they’ll mark a connection as stale. We basically never want a connection to go stale, as you then can’t rely on being able to communicate with the connection. To solve this, a 3 second heartbeat runs on all connections. If the beat fails, we automatically disconnect.

Show source
Register or log in to add new notes.