Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 472 Bytes

protocol.md

File metadata and controls

24 lines (16 loc) · 472 Bytes

Protocol Format

Protocol is very easy - asynchronous, persistent connection on TCP/IP similar to JSON-RPC

Example

Request

{"action": "set_speed", "speed": 2}\n

Response

{"status": "OK", "speed": 2}\n

Because this game is real time, server sends data about moving of tanks/bullets etc

TODO: write about frequency and usage of informations

{"status": "data", "action": "change", "id": "HEX",}\n