feat: relay world snapshot and voxel payloads

Allow world.* methods through the relay, validate their payloads, and
track per-session world revisions in the session store.
This commit is contained in:
2026-10-23 10:44:42 +08:00
parent 6ccb102d38
commit c82f15e8b6
8 changed files with 1064 additions and 46 deletions
+1
View File
@@ -32,6 +32,7 @@ export function install_relay_routes(namespace: Namespace, store: RelaySessionSt
route('forward_node_ready', value => store.node_ready(socket, value));
route('relay_request', value => store.request(socket, value), false);
route('bot_log', value => store.log(socket, value), true, false);
route('bot_event', value => store.event(socket, value), true, false);
route('info_update', value => store.info(socket, value), true, false);
const unknown = (name: string, ...args: unknown[]) => {
if (handlers.has(name)) return;