Protocol - The-Codebomb/Geekchat GitHub Wiki
This page is not completed and is subject to change
:::SYSTEM:::<number><additional information>
- where
<number>
is some number - and
<additional information>
is name or list of names in braces ([ and ])
These are used in connecting and disconnecting.
<sender>:<color>:<receiver>:<message>
- where
<sender>
is the user that sent the message -
<color>
is the color this message should be colored, -
<receiver>
is the user that should receive the message, - and
<message>
is the message that will be displayed
This is the type of messages that user sends
/<command> <arguments>
- where
<command>
is some command that server understands - and
<arguments>
are arguments for that command
These may be used by user and they are supposed to be sent unmodified. Client may use similar messages as it's own commands.
All other messages are information from server. They may be responds to command messages (described above).
When client connects to server, client must ask if nickname is available:
:::SYSTEM:::3[<username>]
where <username>
is the nickname user wants
If it is available server sends TRUE
otherwise server sends FALSE
After succesfully chosen username server sends this message to everyone else:
:::SYSTEM:::1[<username>]
where <username>
is the name of connected user
Then server sends to the connected client list of connected clients:
:::SYSTEM:::4[<list of users>]
where <list of users>
is comma (,) separated list of connected users
Now the client is ready to begin messaging.
TBD
TBD