sufwan-local-test WebSocket API

Server

wss://ws.t.sufwankhalid.com/ws

Production WebSocket server.

Connection: wss://ws.t.sufwankhalid.com/ws?appId=xxx (required). Optionally pass &token=eyJ... for user-level auth on connect.

Reconnection: Reconnect with exponential backoff + jitter: delay = min(1s × 2^attempt + random(0–1s), 30s). On reconnect, re-subscribe to all channels.

Heartbeat: The service emits a JSON heartbeat message clients can observe directly.

Channels