From 4b3f8fe999cbdedfc571330ad3ea93b52da05cdb Mon Sep 17 00:00:00 2001 From: Giacomo Date: Thu, 18 Jun 2026 17:05:22 -0700 Subject: docs: add CONNECTED --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2c84487..5580945 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,7 @@ the responses in the table are assuming normal behavior, they don't include case | Command | Sent | Purpose | Responses | | ------------------ | --------------------------- | ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | +| `n/a` | when connecting to a server | inform the client they've connected | `CONNECTED` | | `HELLO [username]` | when connecting to a server | initiate connection and register a username | `HELLO [username]` (note that if the name is already taken, a random numerical suffix is added), followed by an `MOTD` message | | `MSG [msg]` | when sending a message | send a message for the server to broadcast | `MSG [username]: [msg]` is sent to all clients, including the original sender | | `PING` | at specific timed intervals | tcp keepalive | `PONG` | -- cgit v1.2.3