lspeasy / client/src / HeartbeatConfig
Interface: HeartbeatConfig
Defined in: packages/client/src/connection/types.ts:31
Configuration for optional heartbeat monitoring.
Remarks
When enabled is true, the client sends a $/ping request at each interval milliseconds. If no response arrives within timeout milliseconds, the connection is marked unresponsive.
Config
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
enabled? | boolean | Whether heartbeat monitoring is active. | packages/client/src/connection/types.ts:33 |
interval | number | Interval between pings in milliseconds. | packages/client/src/connection/types.ts:35 |
timeout | number | Time to wait for a pong response in milliseconds. | packages/client/src/connection/types.ts:37 |