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