https://github.com/zhum/dnd
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/zhum/dnd
- Owner: zhum
- Created: 2019-11-10T13:30:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-25T16:17:34.000Z (over 2 years ago)
- Last Synced: 2025-01-30T20:14:57.757Z (over 1 year ago)
- Language: CSS
- Size: 2.52 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Web tracker for offline games
WIP
## Connection protocol
client: "secret_string: command[:options]"
- get_player // get current player info
- get_master // get current master info
- get_chat // get current chat history
- message // send new chat message
- options={'id': 'uniq id','text': 'message text'}
server: json
```
{
'chat': // new message in chat
{
'id': 'uniq id',
'from': 'from',
'text': 'message text'
},
'chat_history': //chat history
[
{'id': 'uniq_id','from':'from','text':'msg text'},...
],
'got_message': // message receive confirmation
{
{id: 'uniq_id'}
},
'player': //player info
{
'name': '...',
...
},
'master': //master info
{
'name': '...',
...
},
...
}
```
### Messages