Skip to content

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

PropertyTypeDescriptionDefined in
enabled?booleanWhether heartbeat monitoring is active.packages/client/src/connection/types.ts:33
intervalnumberInterval between pings in milliseconds.packages/client/src/connection/types.ts:35
timeoutnumberTime to wait for a pong response in milliseconds.packages/client/src/connection/types.ts:37

Released under the MIT License.