endel
Hello and welcome to the forum,
Yes, I've already seen Colyseus in my research. However, RPGJS already includes a similar development (separated by a library called simple-room).
The principles are the same, but it's mainly based on property change detection
For example, a chatroom is created as follows:
export class ChatRoom {
$schema = {
messages: [String]
}
$actions = {
message: true
}
messages = []
onJoin (client) {
this.messages.push(`${ client.id } joined.`)
}
onLeave (client) {
this.messages.push(`${ client.id } left.`)
}
message(client, message) {
this.messages.push(`${ client.id } ${message}`)
}
}
Thanks for the feedback and congratulations on the design of Colyseus, which is very well done 👌