| 4 | import { ErrorCode, CodedError } from './errors'; |
| 5 | |
| 6 | export interface KeepAliveOptions { |
| 7 | logger?: Logger; |
| 8 | logLevel?: LogLevel; |
| 9 | /** How long (in ms) to wait before sending a ping message to keep the connection alive */ |
| 10 | clientPingTimeout?: number; |
| 11 | /** How long (in ms) to wait for the acknowledgement of a ping message before considering the connection dead */ |
| 12 | serverPongTimeout?: number; // NOTE: this must be less than clientPingTimeout |
| 13 | } |
| 14 | |
| 15 | /** |
| 16 | * An object that monitors activity in an RTMClient and generates ping events in an effort to keep its websocket |
nothing calls this directly
no outgoing calls
no test coverage detected