ws://192.168.35.10:8080/myHandler
// todo: dev to update into a hosted link :|
{
"messageType": "CREATE_PLAYER",
"messageData": {
"name": "String"
}
}
{
"messageType": "PLAYER_CREATED",
"messageData": {
"playerId": "String"
}
}
{
"messageType": "GET_PLAYER_DATA",
"messageData": {
"playerId": "<id>"
}
}
{
"messageType": "PLAYER_DATA",
"messageData": {
"playerId": "String",
"name": "String",
"type": "PlayerType"
}
}
- PlayerType : Enum
human
|bot
|unrecognised
heehee /aa \_
__\- / ) .-.
.-. (__/ / haha _/oo \
_/ ..\ / \ ( \v /__
( \ u/__ / \__ \/ ___)
\ \__) \_.-._._ ) .-. / \
/ \ `-` / ee\_ / \_
__/ \ __\ o/ ) \_.-.__ )
( _._.-._/ hoho (___ \/ '-'
'-' / \
_/ \ teehee
( __.-._/