persist games in fixed intervals and on shutdown
This commit is contained in:
parent
5160008c89
commit
996822b046
5 changed files with 88 additions and 36 deletions
|
|
@ -61,6 +61,10 @@ class WebSocketServer {
|
|||
})
|
||||
}
|
||||
|
||||
close() {
|
||||
this._websocketserver.close()
|
||||
}
|
||||
|
||||
notifyOne(data, socket) {
|
||||
socket.send(JSON.stringify(data))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue