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
- theonLeave
will be triggered immediately for custom clean up. (https://github.com/gamestdio/colyseus/issues/132) - You can use
clock
intervals without setting the simulation interval.
Breaking changes:
- The
ClusterServer
has 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
uws
is now done throughServer
constructor. - (client-side)
room.onData
has been renamed toroom.onMessage
. (#128) - (client-side)
room.onUpdate
has been renamed toroom.onStateChange
(#128) - (client-side)
room.data
has been renamed toroom.state
(#128)
See the guide on how to migrate to version 0.9.0
.