VoiceAgentWebSocketConnectOptions interface

تم تمرير الخيارات إلى VoiceAgentWebSocketTransport.connect.

الخصائص

abortSignal

يلغي محاولة الاتصال.

connectionTimeoutInMs

مهلة الاتصال، بأجزاء من الثانية.

headers

رؤوس ليتم إرسالها مع طلب ترقية الاتصال، حيث يدعمها النقل.

protocols

بروتوكولات WebSocket الفرعية للتفاوض.

url

رابط WebSocket للاتصال به.

تفاصيل الخاصية

abortSignal

يلغي محاولة الاتصال.

abortSignal?: AbortSignalLike

قيمة الخاصية

connectionTimeoutInMs

مهلة الاتصال، بأجزاء من الثانية.

connectionTimeoutInMs: number

قيمة الخاصية

number

headers

رؤوس ليتم إرسالها مع طلب ترقية الاتصال، حيث يدعمها النقل.

headers: Record<string, string>

قيمة الخاصية

Record<string, string>

protocols

بروتوكولات WebSocket الفرعية للتفاوض.

protocols: string[]

قيمة الخاصية

string[]

url

رابط WebSocket للاتصال به.

url: string

قيمة الخاصية

string