/$$ /$$ /$$$$$$$$ /$$ /$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$$$ /$$ /$$ | $$ | $$| $$_____/| $$ /$$__ $$ /$$__ $$|_ $$_/|__ $$__/| $$ /$$/ | $$ | $$| $$ | $$ | $$ \ $$| $$ \__/ | $$ | $$ \ $$ /$$/ | $$ / $$/| $$$$$ | $$ | $$ | $$| $$ | $$ | $$ \ $$$$/ \ $$ $$/ | $$__/ | $$ | $$ | $$| $$ | $$ | $$ \ $$/ \ $$$/ | $$ | $$ | $$ | $$| $$ $$ | $$ | $$ | $$ \ $/ | $$$$$$$$| $$$$$$$$| $$$$$$/| $$$$$$/ /$$$$$$ | $$ | $$ \_/ |________/|________/ \______/ \______/ |______/ |__/ |__/

The official socket protocol for Velocity.


Authentication

C2S Registering

REGISTER username password

S2C Too few args

ERR_NEEDMOREPARAMS

S2C Too many args

ERR_TOOMANYPARAMS

S2C Username in use

ERR_ALREADYREGISTRED

S2C Register confirm

CONFIRM_REGISTER

C2S Logging in

LOGIN username password

S2C Incorrect login

ERR_INVALIDCREDENTIALS

S2C Login confirm

CONFIRM_LOGIN

Connection

S2C Ping

PING 912389

C2S Pong

PONG 912389

Messaging

C2S Sending a message

MSG :hello world

S2C Not logged in

ERR_NOAUTH

S2C Receiving message

MSG username :hello world

C2S Sending a DM

PRIVMSG username :hello world

S2C User not online

ERR_NOSUCHUSER

S2C Receiving a DM

PRIVMSG sender :hello world

C2S Fetching 10 messages from index 50

FETCH 50

S2C Receiving a fetched message

FETCH timestamp username :message

Images

C2S Sending an image

IMAGE link

S2C Receiving an image

IMAGE username link