Primary: WebSocket
Real-time bidirectional gameplay communication uses WebSocket (wss://).
- TLS 1.2 or higher is REQUIRED. TLS 1.3 is RECOMMENDED. Plain
ws://connections MUST be rejected in production. - Each WebSocket frame carries exactly one JSON-encoded message (UTF-8).
- Maximum message size: 64 KB. Messages exceeding this limit MUST be rejected.
- Servers SHOULD send a WebSocket ping every 30 seconds. Clients MUST respond with pong.
- Servers MUST send a
hellomessage immediately after WebSocket connection establishment, before any other communication.
Connection URL
authenticate message after connection (see Identity).
Secondary: HTTPS REST
Discovery, identity setup, and funding operations use standard HTTPS REST endpoints:
REST endpoints use the same TLS requirements as WebSocket. Authentication tokens are passed via
Authorization: Bearer {token} header.
Rate Limiting
Servers SHOULD implement rate limiting and MUST communicate limits via standard headers:RATE_LIMITED.