From b64e360b26fcea45faaf4caf8d65db204efdd450 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 23 Dec 2024 20:01:25 +0100 Subject: username length limit --- protocol.md | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'protocol.md') diff --git a/protocol.md b/protocol.md index 9562ab6f..35a13076 100644 --- a/protocol.md +++ b/protocol.md @@ -75,3 +75,12 @@ latency. For this reason it implemented three times: - In Rust (for server, pixelcurry and customers): [movement.rs](./server/protocol/src/movement.rs) - In TypeScript (for test-client): [movement.ts](./test-client/movement.ts) + +## Limits + +The server currently enforces the following network limits: + +- Server inbound json packets are at most 8196 bytes in size +- Server inbound binary packets are at most 4096 bytes in size +- Player names are no longer than 32 characters +- Player names are no longer than 64 bytes -- cgit v1.2.3-70-g09d2