WebSocketAPIEvents
Constants
ClientToolInvocation
Sent by the server to ask the client or data connection to invoke a tool with the given parameters. https://docs.ultravox.ai/apps/datamessages#clienttoolinvocation-and-dataconnectiontoolinvocation
Parameters
client:
The Ultravox.WebSocketAPIClient instance.
data:
Object
OptionalThe event's data.
ConnectorInformation
Contains information about connector.
Parameters
client:
The Ultravox.WebSocketAPIClient instance.
data:
Object
OptionalThe event's data.
DataConnectionToolInvocation
Sent by the server to ask the client or data connection to invoke a tool with the given parameters. https://docs.ultravox.ai/apps/datamessages#clienttoolinvocation-and-dataconnectiontoolinvocation
Parameters
client:
The Ultravox.WebSocketAPIClient instance.
data:
Object
OptionalThe event's data.
Debug
Useful for application debugging. https://docs.ultravox.ai/apps/datamessages#debug
Parameters
client:
The Ultravox.WebSocketAPIClient instance.
data:
Object
OptionalThe event's data.
HTTPResponse
The HTTP response event.
Parameters
client:
The Ultravox.WebSocketAPIClient instance.
data:
Object
OptionalThe event's data.
PlaybackClearBuffer
Used to clear buffered output audio. WebSocket only. https://docs.ultravox.ai/apps/datamessages#playbackclearbuffer
Parameters
client:
The Ultravox.WebSocketAPIClient instance.
data:
Object
OptionalThe event's data.
State
Indicates the server’s current state. https://docs.ultravox.ai/apps/datamessages#state
Parameters
client:
The Ultravox.WebSocketAPIClient instance.
data:
Object
OptionalThe event's data.
Transcript
Contains text for an utterance made during the call. https://docs.ultravox.ai/apps/datamessages#transcript
Parameters
client:
The Ultravox.WebSocketAPIClient instance.
data:
Object
OptionalThe event's data.
Unknown
The unknown event.
Parameters
client:
The Ultravox.WebSocketAPIClient instance.
data:
Object
OptionalThe event's data.
WebSocketError
The WebSocket error response event.
Parameters
client:
The Ultravox.WebSocketAPIClient instance.
data:
Object
OptionalThe event's data.