URL
key is required. The backend accepts either a LaunchBlitz session token or a user API key, but direct integrations should use an API key.
Authentication
- The socket reads the
keyquery parameter during the WebSocket handshake. - Missing
keyvalues are rejected at handshake time. - Invalid keys do not receive the initial
connectedmessage. - An API key authenticates as the LaunchBlitz user that owns it, so requests run with that user’s wallets, tier, referral settings, and permissions.
Initial message
After a successful connection, the server sends a plain text frame:Keepalives
The socket supports both text heartbeat messages and standard WebSocket ping/pong frames.- The server sends a text
pingevery 30 seconds. - Your client should reply with text
pong. - If your client sends text
ping, the server replies with textpong. - If your client sends a WebSocket ping frame, the server replies with a pong frame.
- The server disconnects the client after 20 missed heartbeat intervals.
Recommended client behavior
- Reply to every incoming
pingimmediately. - Optionally send your own
pingon a shorter interval to measure latency. - Reconnect on close and resubscribe your local request tracking state.
JavaScript example
Session identifiers in responses
Transaction responses includebody.session_key, but that value is the server-side connection identifier for the authenticated session, not your raw API key. Use your own request identifier fields to correlate requests.