avatar:moved
"avatar:moved": (
state: { position: { x: number; y: number; z: number } },
) => void
avatar:spawned
"avatar:spawned": (
state: {
networkId: string;
position: { x: number; y: number; z: number };
},
) => void
avatar:updated
"avatar:updated": (state: unknown) => void
connection:error
"connection:error": (error: Error) => void
connection:established
"connection:established": () => void
connection:lost
"connection:lost": () => void
error
error: (error: Error) => void
message:received
"message:received": (data: { body: string; session_id: string }) => void
message:sent
"message:sent": (message: string) => void
room:joined
"room:joined": (data: { session_id: string }) => void
room:left
"room:left": () => void
voice:connected
"voice:connected": () => void
voice:disconnected
"voice:disconnected": () => void
voice:error
"voice:error": (error: Error) => void
voice:frame-received
"voice:frame-received": (
data: { participantId: string; pcmData: Int16Array },
) => void
voice:mute-changed
"voice:mute-changed": (data: { muted: boolean }) => void
Type-safe event definitions for AgentClient Maps event names to their handler signatures