webSocketPingInterval property
Native WebSocket heartbeat interval. Null disables client pings.
Longer intervals reduce idle network traffic, but also delay detection of silent connection failures (the pong timeout equals this interval). Browser WebSocket APIs do not expose heartbeat controls.
Implementation
Duration? webSocketPingInterval;