Event Reference
Subscribe with `client.on(event, callback)`. The return value is an unsubscribe function.
const unsub = client.on('botReady', () => {
console.log('Bot is ready');
});
// Later
unsub();
// or
client.off('botReady', handler);Connection events
connect
connectclient.on('connect', () => {
console.log('Transport connected');
});botReady
botReadyclient.on('botReady', () => {
client.sendUserTextMessage('Hello!');
});disconnect
disconnectstateChange
stateChangeerror
errorConversation events
conversationStart
conversationStartturnEnd
turnEndmessage
messagemessagesChange
messagesChangeuserTranscriptionChange
userTranscriptionChangeSpeaking events
speakingChange
speakingChangebotOutput
botOutputbotTtsStarted
botTtsStartedbotTtsStopped
botTtsStoppedbotTtsText
botTtsTextMicrophone events
userMuteStarted
userMuteStarteduserMuteStopped
userMuteStoppedBlendshape / lipsync events
blendshapes
blendshapesblendshapeStatsReceived
blendshapeStatsReceivedAction events
actionResponse
actionResponseServer response events
serverResponse
serverResponseinteractionCreated
interactionCreatedField
Type
Description
Session events
idleWarning
idleWarningllmNoResponse
llmNoResponsemetrics
metricsAudio track (WebSocket transport)
botAudioTrack
botAudioTrackEvent quick-reference
Event
Payload
When
Last updated
Was this helpful?