Navigation

  • Recent
  • Tags
  • Users
  • Search
  • Login
Colyseus
  • Login
  • Search
  • Recent
  • Tags
  • Users

Documentation GitHub

We're migrating to GitHub Discussions. This forum does not accept new registrations since April 6, 2023.
  1. Home
  2. rscata
rscata

rscata

@rscata

Chat Follow Unfollow
1
Reputation
29
Posts
2.2k
Profile views
1
Followers
0
Following
Joined 10 Feb 2018, 19:04 Last Online 13 Jun 2019, 07:51

  • Profile
  • More
    • Continue chat with rscata
    • Flag Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups
rscata Follow

Posts made by rscata

RE: Timer

@plyoung thanks

posted in Questions & Help • 13 Jun 2018, 05:50
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 • 11 Jun 2018, 12:20
RE: Error handling

thanks @endel . I will try

posted in Questions & Help • 10 May 2018, 06:07
Error handling

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

posted in Questions & Help • 8 May 2018, 06:47
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 • 28 Apr 2018, 17:57
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 • 27 Apr 2018, 08:17
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 • 26 Apr 2018, 12:33
RE: Management system for server

@endel thank you very much

posted in Questions & Help • 17 Apr 2018, 11:31
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 • 16 Apr 2018, 07:07
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 • 12 Apr 2018, 08:54

© 2023 Endel Dreyer