Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(world): send join-time messages through the client API Colyseus asks for

nirholas938db105595f
diff --git a/multiplayer/src/rooms/WalkRoom.js b/multiplayer/src/rooms/WalkRoom.js
index 57d3b4e49..69ebc44d8 100644
--- a/multiplayer/src/rooms/WalkRoom.js
+++ b/multiplayer/src/rooms/WalkRoom.js
@@ -1232,7 +1232,7 @@ export class WalkRoom extends Room {
// Notify the newly-tagged client so they get the "YOU'RE IT!" alert.
try {
const clients = this.clients.filter(c => c.sessionId === newItId);
- if (clients.length) this.send(clients[0], 'tag', { event: 'became-it', itId: newItId });
+ if (clients.length) clients[0].send('tag', { event: 'became-it', itId: newItId });
} catch { /* best-effort */ }
this._broadcastTagState();
}
@@ -1474,7 +1474,7 @@ export class WalkRoom extends Room {
/** Send the current game state to one client (on join), so a mid-round arrival
* sees the correct zone, timer and scoreboard immediately. */
_sendKingSync(client) {
- try { this.send(client, 'game:king', this._kingSnapshot('sync')); } catch { /* best-effort */ }
+ try { client.send('game:king', this._kingSnapshot('sync')); } catch { /* best-effort */ }
}
// ─────────────────────────────────────────────────────────────────────────────