What
A remote session regularly sends a small "still alive" message, called a heartbeat, to show the connection is working. A new heartbeatGap tracker now follows these messages.
- The worker session client accepts an optional
heartbeatGaptracker. On each heartbeat to/worker/heartbeat, it callsnoteSentwith the number of seconds the session has been idle. - The client also gains the fields
unheardandlastStreamEventDropAtMs. - The bridge passes the tracker through to the session transport (the part that carries messages). It calls
noteAcceptedwhen a heartbeat succeeds. - The timestamp arguments for heartbeats were swapped, which changes which time is compared to judge success and which time is recorded as the success time.
Why
Nothing changes in what you do. The tracking makes it easier to tell when a remote session's connection goes quiet or drops heartbeats.