Doesn't sound like you need a game server at all or any framework for that matter, just store the time in a DB and compare the date/time values at the time of opening.
1
Reputation
2
Posts
664
Profile views
0
Followers
0
Following
Posts made by learning
RE: Web Game Server
posted in Questions & Help •
State management question
posted in Questions & Help •
So I am using the example on the documentation.. I am assuming
onLeave (client) {
delete this.state.players[ client.sessionId ];
}
is supposed to trigger a change.operator delete event on the client side but nothing happens. on message and onjoin seem to work as intended.
I am using
arena.listen("players/:id/:attribute", (change) => { })
which makes a lot of sense but what would be the use case of
arena.onStateChange.add((state) => { })
?