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. learning
  3. Posts
  • Profile
  • More
    • Continue chat with learning
    • Flag Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

Posts made by learning

RE: Web Game Server

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.

posted in Questions & Help • 9 Dec 2018, 14:21
State management question

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) => { })

?

posted in Questions & Help • 8 Dec 2018, 20:54

© 2023 Endel Dreyer