The server lets you listen for some events, like refreshes (potential version updates).
/listen
Sends JSON objects separated by newlines. Your .readln() of choice will work to get the next event.
Each event contains `event-kind` (string) and `data` (json object).
event-kind | data |
---|
init | - |
refresh:[version] | Same as /[version]/branches |