Messages are to be sent as standard JSON. The method to be invoked is indicated by the "type" field of the json message.
Message Type | Parameters |
---|---|
connect | appearance: string id: int name: string |
move | x: int y: int |
floor | depth: int |
dead | deadTo: string |
Message Type | Parameters |
---|---|
connect | appearance: string id: int name: string x: int y: int |
move | id:int, x: int y: int |
floor | dead: Array[deadTo, x, y], players: Array[id, name, x, y] |
disconnect | id: int |
dead | id: int deadTo: string |