websocket connetion to wss:/ws/
everything is sent as serialized json objects
{"t":"Au":"users":{$all_users_serialized},"groups":{$all_groups_serialized}}
this should be the first thing that's received upon connecting
{"t":"m","i":$message_id_number,"ts":"2006-01-02T15:04:05.999Z07:00","uid":$author_id_number,"c":"$message_contents"}
{"t":"error","m":"$error_message"}
{"t":"info","m":"$info_message"}
{"t":"+u","u":{$all_user_fields_serialized}}
a user has connected
{"t":"*u","u":{$all_user_fields_serialized}}
user has been modified in some way and should be updated (sends everything, not just the change)
{"t":"-u","uid":$user_id_number}
user has went away and has no messages in history, all related information can be released
{"t":"su","id":$user_id_number}
connection is from now on using the specified user
{"t":"m","c":"$message_text"}
posts a message, if current user can and post rate is not exceeded. might queue "t":"m"
on success
{"t":"sign in","name":"$user_name","pass":"$user_password"}
changes current user. might queue "t":"su"
on succcess or "t":"error"
on failure
{"t":"sign up","name":"$user_name","pass0":"$user_password","pass1":"$user_password"}
creates new user only. might queue "t":"info"
on success or "t":"error"
on failure
{"t":"chpass","c-pass":"$user_password","pass0":"$new_user_password","pass1":"$new_user_password"}
changes current user password, if it's possible. might queue "t":"info"
on success or "t":"error"
on failure
{"t":"style", }
modifies current user's styles that are specified. migth queue "t":"user style change"
on if stars align or "t":"error"
on failure
{"t":"move","group":"$group_name","u":$user_id_number}
if current user has the power, moves the specified user to another group. might queue "t":"error"
on failure or "t":"*u"
on success (probably, can't make it out just from hub.go)
{"t":"del","msg-id":$post_id_number}
removes a post. might queue "t":"del"
on success