Open osbornmatwit opened 3 years ago
In source docs copied here.
The basic format is type:data
sent over a DataOutputStream.
Each message should be with writeUTF and read with readUTF.
system
System messages
close
The connection is closingclientDisconnect
Some client on the connection has disconnected, so the whole thing is endingbadMessage
The client sent a badly formatted messagetryFindPartner
The client wants a partner if there is one available.result
A result from a previous request
true
or false
for boolean requests.chat
Chat messages, data is an arbitrary string
game
Game specific messages, TBD
In source docs
Features needed
Optional