Web demo is a set of UI components based on the IM SDK. It provides features such as conversation, chat, search, relationship chain, group, and audio/video call. You can use these UI components to quickly build your own business logic.
|Search||Searches for and displays conversations or messages|
|Conversation||Pulls and displays the conversation list|
|Chat||Receives, sends, and displays messages|
|Relationship Chain||Pulls and displays the friend list|
|Group||Pulls and displays group information|
|Audio/Video Call||Makes audio/video calls|
Download the SDK and demo source code that fit your needs.
GenerateTestUserSigfile via the path /public/debug/GenerateTestUserSig.js.
Keycan be obtained in the IM console. Click the card of the target app to go to its basic configuration page.
In this document, the method to obtain
UserSigis to configure a
SECRETKEYin the client code. In this method, the
SECRETKEYis vulnerable to decompilation and reverse engineering. Once your
SECRETKEYis disclosed, attackers can steal your Tencent Cloud traffic. Therefore, this method is only suitable for locally running a demo project and feature debugging.
UserSigdistribution method is to integrate the calculation code of
UserSiginto your server and provide an app-oriented API. When
UserSigis needed, your app can send a request to the business server to obtain a dynamic
UserSig. For more information, see How to Generate UserSig on the Server.
Integrate static resources (such as tools and images) into your project.
Update the route based on the imported modules: