VoiceAgentWebSocketConnectOptions interface
属性
| abort |
取消连接尝试。 |
| connection |
连接超时,毫秒级。 |
| headers | 在传输支持的情况下,连接升级请求中发送头部。 |
| protocols | WebSocket子协议用于协商。 |
| url | 连接到WebSocket的URL。 |
属性详细信息
abortSignal
connectionTimeoutInMs
连接超时,毫秒级。
connectionTimeoutInMs: number
属性值
number
headers
在传输支持的情况下,连接升级请求中发送头部。
headers: Record<string, string>
属性值
Record<string, string>
protocols
WebSocket子协议用于协商。
protocols: string[]
属性值
string[]
url
连接到WebSocket的URL。
url: string
属性值
string