Polyv Help Center

Help Center

Combining Live JS-SDK and Chat Room JS-SDK

Updated: 2023-03-02 18:11:51

Problem Description

How to combine the Live JS-SDK and Chat Room JS-SDK? What is the correct order?

Solution

If the Live JS-SDK is used alone, the Live SDK creates a socket by default, while the Chat Room itself has its own socket. Therefore, when combining the two, the Chat Room's socket needs to be passed to the Live SDK.

image-liveAndChat

联系客服,在线咨询