@plyoung thanks
rscata
@rscata
Posts made by rscata
-
Timer
If a player does not make a decision in 30 seconds, how could I generate an action?
for example in a board game, if it does not move the piece, the server automatically moves the piece.
-
Error handling
Is there a way to handling all the errors and send them to me via email?
Thanks. -
RE: onLeave timeout
Thanks @endel
Yes, this solution is good not to close the room, if there is no player in the room, but if in a room I have 5 players who play for example poker and by mistake one of them leave the room, how can I set an interval in which to return to the game room?
Should I set a timeout for each client?I want to have 30 sec. to return to the room.
Or, for example, if refresh on the browser page.
In onLeave function, I implemented the destruction of the player instance, but I would like to give her some time to come back before destroying the instance.
onLeave () { if (this.clients.length === 0) { setTimeout(() => this._disposeIfEmpty(), 5000); } else { // TODO: the player can return to play // remove instance this.state.removePlayer(client); } }
thank you very much for your help
-
onLeave timeout
on server side, when player leave room, you can set a time out to avoid session destroying for few seconds if he wants to return?
-
RE: Browser support?
From what I tested:
- IE8 - does not support ws
- IE11 - works
- iOS 7 does not support msgpack
- IOS 9 - works
- Opera 22.x does not support ws
- Opera 33.x - works
- Android 6.0 - works
-
RE: Management system for server
I have not yet done, if i'm going to do i will announce you.
Thank you
Have a nice day -
Management system for server
What method would be for the server to perform certain actions in a room (send users message, kick user, ..) depending on certain triggered events?
I was thinking of solitude by using a list system, like Redis for example, but I just do not know if it's optimal, like if I had 1000 rooms, it would mean having 1000 lists, one for each room.
As a management system for the server.
Thanks