- keep-alives for connection (every 2-3 seconds)
{"cmd": "reg"}
{"cmd": "auth", "user_id": "<user_id>"}
{"cmd": "state", ......}
{"cmd": "queue"}
{"cmd": "move", "pos": [x, y]}
- place your sign on specified coordinates
Server developed and debugged using Python 2.7.13 in virtualenv
- install or setup venv (or not)
- install requirements from
requirements.txt
pip install -r requirements.txt
- make sure that script is able to write in it's directory
- start
python main.py
- client located in
./client
- requirements for client located in
./client
also - by default it'll try to connect to localhost if server located elsewhere - start script with server host as parameter:
python client.py <server_host>
- client directory should be writable by script, so it can store credentials
- as client is using ncurses - linux terminal preferred