fix(relay): secure reconnect and room ownership

This commit is contained in:
edde746
2026-07-24 03:46:50 +02:00
parent e0bf66eea8
commit 43a8fe020d
82 changed files with 12341 additions and 1382 deletions
+11 -3
View File
@@ -1,10 +1,14 @@
{
"protocolVersion": 2,
"legacyProtocolVersion": 0,
"clientMessageTypes": {
"create": "create",
"join": "join",
"broadcast": "broadcast",
"sendTo": "sendTo",
"ping": "ping"
"ping": "ping",
"leave": "leave",
"endSession": "endSession"
},
"serverMessageTypes": {
"created": "created",
@@ -13,7 +17,9 @@
"peerLeft": "peerLeft",
"message": "message",
"error": "error",
"pong": "pong"
"pong": "pong",
"left": "left",
"ended": "ended"
},
"errorCodes": {
"rateLimited": "rate_limited",
@@ -22,7 +28,9 @@
"roomNotFound": "room_not_found",
"roomFull": "room_full",
"notInRoom": "not_in_room",
"alreadyInRoom": "already_in_room"
"alreadyInRoom": "already_in_room",
"peerIdUnavailable": "peer_id_unavailable",
"protocolMismatch": "protocol_mismatch"
},
"limits": {
"maxRoomSize": 8,