VoiceAgentWebSocketConnectOptions interface
Options passed to VoiceAgentWebSocketTransport.connect.
Properties
| abort |
Cancels the connection attempt. |
| connection |
Connection timeout, in milliseconds. |
| headers | Headers to send with the connection upgrade request, where supported by the transport. |
| protocols | The WebSocket subprotocols to negotiate. |
| url | The WebSocket URL to connect to. |
Property Details
abortSignal
connectionTimeoutInMs
Connection timeout, in milliseconds.
connectionTimeoutInMs: number
Property Value
number
headers
Headers to send with the connection upgrade request, where supported by the transport.
headers: Record<string, string>
Property Value
Record<string, string>
protocols
The WebSocket subprotocols to negotiate.
protocols: string[]
Property Value
string[]
url
The WebSocket URL to connect to.
url: string
Property Value
string