persist games in fixed intervals and on shutdown

This commit is contained in:
Zutatensuppe 2020-12-04 00:04:47 +01:00
parent 5160008c89
commit 996822b046
5 changed files with 88 additions and 36 deletions

View file

@ -61,6 +61,10 @@ class WebSocketServer {
})
}
close() {
this._websocketserver.close()
}
notifyOne(data, socket) {
socket.send(JSON.stringify(data))
}