Hi everyone! I'm very excited to announce this release. It adds some features that have been requested for a long time.
Hope you like it as well!
New features & improvements:
- Introduced public room listing (
getAvailableRooms) (https://github.com/gamestdio/colyseus/issues/131) - Horizontal scalability through Redis (https://github.com/gamestdio/colyseus/issues/57)
- PM2 is now supported (https://github.com/gamestdio/colyseus/issues/56)
- Improved how rooms are automatically locked when maxClients is reached.
- If an application error occurs during
onJoin- theonLeavewill be triggered immediately for custom clean up. (https://github.com/gamestdio/colyseus/issues/132) - You can use
clockintervals without setting the simulation interval.
Breaking changes:
- The
ClusterServerhas been deprecated. (fixes https://github.com/gamestdio/colyseus/issues/56, https://github.com/gamestdio/colyseus/issues/74, https://github.com/gamestdio/colyseus/issues/91, https://github.com/gamestdio/colyseus/issues/125, https://github.com/gamestdio/colyseus/issues/126) verifyClient(client, options)has been renamed toonAuth(options)- Integration with
uwsis now done throughServerconstructor. - (client-side)
room.onDatahas been renamed toroom.onMessage. (#128) - (client-side)
room.onUpdatehas been renamed toroom.onStateChange(#128) - (client-side)
room.datahas been renamed toroom.state(#128)
See the guide on how to migrate to version 0.9.0.