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. maldonadod
maldonadod

maldonadod

@maldonadod

Chat Follow Unfollow
0
Reputation
1
Posts
665
Profile views
0
Followers
0
Following
Joined 15 Apr 2020, 20:07 Last Online 19 Apr 2020, 16:03

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

Posts made by maldonadod

Room creation and handling philosophy

Hello I'm Daniel, I'm new here. I just discovered this framework last weekend, it looks very interesting I'd like to use it in a card game that I'm building.

I'd like to have a room for "connected players" or sort of channel that updates "client's player list" every time a client connects with the server.

So I have a server that defines a Room Handler for the room name of "connected_players".

Then in the client I installed "colyseus.js" and I attempted to make the client join this room by name, but apparently the room doesn't exists... so I thought I have to create it and changed the method for joinOrCreate, that worked.

So what's the question ? My first thought was that the server when defines a room it make it already available but apparently the client has to created...

Is that the purpose of joinOrCreate method ? Do you have another approach to broadcast the connected users ?

Thank you in advance.

posted in Questions & Help • 15 Apr 2020, 22:14

© 2023 Endel Dreyer