tencent cloud

Tencent Cloud AI Digital Human

문서Tencent Cloud AI Digital Human

Creating a Long Connection Channel

Download
포커스 모드
폰트 크기
마지막 업데이트 시간: 2024-07-19 10:11:28
Establish a WebSocket long connection channel to send drive instructions upstream and receive downstream messages.

Calling Protocol

WebSocket + JSON
WSS /v2/ws/ivh/interactdriver/interactdriverservice/commandchannel
Header Content-Type: application/json;charset=utf-8

Connection Establishment Method

websocket url: see Digital Human aPaas API Calling Method for organizing the URL.
Note:
It is particularly important to note that the requestid parameter should be filled with the value of the session ID (SessionId). For example:
wss://domin/v2/ws/ivh/interactdriver/interactdriverservice/commandchannel?appkey=xxx&requestid=m123&timestamp=xxx&signature=xxx
Websocket may disconnect due to network fluctuations, cloud service updates, etc. When a disconnection is detected, as long as the session status has not been closed, re-establishment is required.
Please call theStart Session API before establishing a WebSocket long connection; otherwise, the connection will fail. Only one long connection channel is allowed per session.



도움말 및 지원

문제 해결에 도움이 되었나요?

피드백