Connection
- URL:
"wss://v5-test.oddspapi.io" - First message must be
login
Protocol flow
- Client connects
- Client sends
login - Server sends
login_ok(orerror) - Server streams
UPDATEstructures for subscribed channels
Control frames vs stream frames
- Control frames:
login_ok,error,snapshot_required,resume_complete - Stream frames:
{ "channel": "...", "type": "UPDATE", ... }
Message formats
receiveType: "json"(default): JSON text framesreceiveType: "binary": server is sending msgpack for odds and oddsFutures channels (other channels will still be JSON bytes)