Messages
"""""heartbeat"""WebSockets
Connection Keep-Alive
WebSocket control frames for connection management.
Kalshi sends Ping frames (0x9) every 10 seconds with body heartbeat to maintain the connection.
Clients should respond with Pong frames (0xA). Clients may also send Ping frames to which Kalshi will respond with Pong.
WSS
/
Messages
"""""heartbeat"""apiKey
type:apiKey
API key authentication required for WebSocket connections. The API key should be provided during the WebSocket handshake.
Ping
type:string
Client sends Ping frame (0x9) to elicit Pong from Kalshi
Pong
type:string
Client replies to Ping with Pong Frame (0xA)
Ping
type:string
Kalshi sends Ping (0x9) with body 'heartbeat' to elicit Pong from client
Pong
type:string
Kalshi responds to client Ping with Pong frame (0xA)