https://docs.colyseus.io/colyseus/server/room/#public-methods
this.onMessage("*", (client, type, message) => {
console.log(client.sessionId, "sent", type, message);
}
如文档所描述,会排除已经注册的,但实际测试下来无效。colyseus 14.20+unity2021.3
https://docs.colyseus.io/colyseus/server/room/#public-methods
this.onMessage("*", (client, type, message) => {
console.log(client.sessionId, "sent", type, message);
}
如文档所描述,会排除已经注册的,但实际测试下来无效。colyseus 14.20+unity2021.3