SwarmKeyDb WebSocket endpoint: ws://<host>:<SWARM_KEYDB_WS_PORT>/
{"cmd":"XREAD","args":["BLOCK","0","STREAMS","mystream","$"]}
cmd is required string.args is optional string array.Raw RESP frames are accepted in text messages, for example:
*2\r\n$4\r\nPING\r\n$4\r\nPONG\r\n
JSON response shapes:
{"cmd":"PING","data":"PONG"}{"push":[...]}{"error":"ERR ...","cmd":"PING"}If SWARM_KEYDB_REQUIREPASS is set:
{"cmd":"AUTH","args":["<password>"]}
Non-AUTH commands return:
{"error":"NOAUTH Authentication required.","cmd":"GET"}
SWARM_KEYDB_WS_CORS_ORIGINS controls allowed Origin header values for upgrades.
Disallowed origins receive HTTP 403.