diff options
Diffstat (limited to 'protocol.md')
-rw-r--r-- | protocol.md | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/protocol.md b/protocol.md index 35671e75..1abdfc36 100644 --- a/protocol.md +++ b/protocol.md @@ -19,9 +19,9 @@ The protocol schema is defined in [`protocol.ts`](./test-client/protocol.ts) -1. Connect to the server via WebSocket (on port 27032 for plain HTTP or 443 with - SSL) and send/receive json in WebSocket "Text" messages. The binary protocol - uses "Binary" messages and is optional for servers and clients. +1. Connect to the server via WebSocket and send/receive json in WebSocket "Text" + messages. The binary protocol uses "Binary" messages and is optional for + servers and clients. 2. Wait for `version` packet and check version compatibiliy (see below). 3. Send the join packet with your username. 4. The server will send the current game state: @@ -41,6 +41,13 @@ Collisions are handled by the clients. Whenever to players collide the player with the greater PlayerID is responsible for updating their own momentum and sending a packet to update that of the other player. +## Ports + +- 443: All uses with TLS +- 27032: Game Server Websocket +- 27033: Registry API HTTP +- 27034: Lobby Server Websocket + ## Binary Protocol Servers might also support the binary protocol. It uses |