* Configuration options for WebSocket connection.
| 11 | * Configuration options for WebSocket connection. |
| 12 | */ |
| 13 | interface WebSocketConfig { |
| 14 | /** Maximum number of reconnection attempts */ |
| 15 | maxRetries: number; |
| 16 | /** Initial delay between reconnection attempts (ms) */ |
| 17 | initialRetryDelay: number; |
| 18 | /** Maximum delay between reconnection attempts (ms) */ |
| 19 | maxRetryDelay: number; |
| 20 | /** Heartbeat interval (ms) */ |
| 21 | heartbeatInterval: number; |
| 22 | /** Heartbeat timeout (ms) */ |
| 23 | heartbeatTimeout: number; |
| 24 | /** Inactivity timeout (ms) - 0 to disable */ |
| 25 | inactivityTimeout: number; |
| 26 | } |
| 27 | |
| 28 | const DEFAULT_CONFIG: WebSocketConfig = { |
| 29 | maxRetries: 10, |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…