Use a client keepalive timeout of 120 seconds for the web client, keep other clients on 30 seconds.
Use a client keepalive timeout of 120 seconds for the web client, keep other clients on 30 seconds.
Web browsers throttle JavaScript timers of background tabs for energy saving reasons.
Even though Chrome and Firefox refrain from aggressive throttling when tabs use WebSocket connections, this might not always work correctly.
Since timers typically coalesce at one-minute intervals, a two-minutes timeout should be fine.