Skip to content

richburg/ax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About
=====

Lightweight, easy-to-deploy and hackable TCP chatting server designed for small to medium communities.

Protocol
========

Message formatting is alike both for server and client.

class Payload:
    message: str
    args: list[str]

Example `payload.message`: INCOMING_MESSAGE
Example `payload.args`: [<author>, <content>]

Server-side payloads
====================

SLOW_DOWN
UNAUTHORIZED
INCOMING_MESSAGE|<author>|<message>
PING

NICK_ALREADY_SET
NICK_INVALID
NICK_TAKEN

USER_NOT_FOUND

NICK_OK|<desired_nick>
LIST_OK|<user1>|<user2>|<user3>|...
WHOAMI_OK|<nick>
TOGGLE_AFK_OK
CHECK_AFK_OK|<given_nick>|<boolean>

TODO
====

[x] Populate server/commands/

About

📨 Simple yet robust TCP chatting server.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages