Colyseus Versions Save

⚔ Multiplayer Framework for Node.js

0.11.7

4 years ago
  • Fixes graceful shutdown
  • Allow numbers on room names (e.g. gameServer.define("something_123", /*...*/))
  • Matchmaking routes are framework-agnostic (works on Express, Koa, plain http, etc.)
  • Fixes closing code when the client performs a room.leave().

When the closing code received in the client-side is anything higher than 1000, it means an abnormal disconnection:

room.onLeave(code => {
  if (code > 1000) {
    // abnormal disconnection!
  } else {
    // the client has initiated the disconnection
  }
});

0.11.4

4 years ago
  • Fixes room listing during explicit lock() / unlock()
  • Fixes hasReachedMaxClients() during onJoin()

0.11.2

4 years ago

0.11.0

4 years ago

Version 0.11 is finally here! 🎉 See migration guide: https://docs.colyseus.io/migrating/0.11/

0.10.9

4 years ago

Implements publish / subscribe to default LocalPresence (single-process)

(Rooms can communicate with each other through this.presence)

onInit() {
    // subscribe to global "events"
    this.presence.subscribe("events", (data) => console.log("event received", data));

    // publish to global "events"
    this.presence.publish("events", { text: "Player XYZ has been killed!" });
}

0.10.8

4 years ago
  • Fixes serious memory leak issues
  • Upgrade ws package to 7.1.x

0.10.6

5 years ago

0.10.5

5 years ago
  • Allow to deploy Colyseus outside of the root path (e.g. ws://domain.com/your-game/)

0.10.4

5 years ago
  • deprecate MemsharedPresence
  • allow to use "strict": true on tsconfig.json from the consumer side

0.10.2

5 years ago
  • deprecate RemoteClient.
  • (service discovery) registering the process id and server address into Redis
  • usage of proxy forwarding to the right process where the room lives in is possible through https://github.com/colyseus/proxy
    • more proxy solutions should be allowed and documented in the future, such as HAProxy, nginx, Envoy.