-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathworker_protocol.txt
20 lines (14 loc) · 1.01 KB
/
worker_protocol.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
This covers the protocol used between the bnglist server and it's workers. These workers are used to update the gamelist, and may have extra functions in the extended protocol. Workers may or may not support all of these functions. No authentication is supported - an IP address whitelist can be used to only accept certain hosts, or if only connections from localhost will be made the server can bind to localhost.
By default, the server listens on port 5873.
W->S: HELLO workerversion
S->W: HELLO serverversion
W->S: MODE mode
mode is either PUSH or
W->S: PUSH mappath|hostname|ipstring|port|hostcounter|gametype|mapflags|mapwidth|mapheight|elapsedtime|crc|realm|gamename
Pushes a game onto the server gamelist (or updates the last seen time if it's already on the list)
realm is the ID of the realm on the worker side (all workers should have the same realm config)
S->W: SAY realm message
Tells the worker to queue the chat command.
W->S: EVENT type payload
type=CHAT, payload=message
type=WHISPER, payload=user message