tencent cloud

Feedback

Creating a Long Connection Channel

Last updated: 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.



Catalog

In The Article

Creating a Long Connection Channel

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support