diff options
author | metamuffin <metamuffin@disroot.org> | 2024-09-21 18:07:18 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-09-21 18:07:18 +0200 |
commit | 362363b3fd1f1fbffe2a3f81d73e71939addd34b (patch) | |
tree | 2c406b674a23a27a9bb6c61026243c5929bdca28 /protocol.md | |
parent | 34190a70b1efa0972ef58b88d356f985c46b89ae (diff) | |
download | hurrycurry-362363b3fd1f1fbffe2a3f81d73e71939addd34b.tar hurrycurry-362363b3fd1f1fbffe2a3f81d73e71939addd34b.tar.bz2 hurrycurry-362363b3fd1f1fbffe2a3f81d73e71939addd34b.tar.zst |
redirect packet
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 |