Skip to content

Protocol Specification

GiZano edited this page Jan 29, 2026 · 1 revision

JSON Protocol Standard

To ensure interoperability between different client implementations, all messages use the JSON format.

Message Schema

{
  "from": {
    "name": "string",
    "ip": "string"
  },
  "to": "string",
  "msg": "string"
}

Core Logic

  1. Handshake: The server first receives the name of the new user for registry validation.
  2. Username Uniqueness: If a name is already in use, the connection is refused.
  3. Routing: If the to field is a registered user, the server forwards the message; otherwise, it checks for commands.

Clone this wiki locally