Navigation

    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Users
    1. Home
    2. rscata
    • Continue chat with rscata
    • Start new chat with rscata
    • Flag Profile
    • block_user
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    rscata

    @rscata

    1
    Reputation
    29
    Posts
    807
    Profile views
    1
    Followers
    0
    Following
    Joined Last Online

    rscata Follow

    Posts made by rscata

    • RE: Timer

      @plyoung thanks

      posted in Questions & Help
      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.

      posted in Questions & Help
      rscata
    • RE: Error handling

      thanks @endel . I will try

      posted in Questions & Help
      rscata
    • Error handling

      Is there a way to handling all the errors and send them to me via email?
      Thanks.

      posted in Questions & Help
      rscata
    • 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

      posted in Questions & Help
      rscata
    • 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?

      posted in Questions & Help
      rscata
    • 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
      posted in Questions & Help
      rscata
    • RE: Management system for server

      @endel thank you very much

      posted in Questions & Help
      rscata
    • 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

      posted in Questions & Help
      rscata
    • 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

      posted in Questions & Help
      rscata