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.
Feature | Description |
---|---|
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.
# Run in CLI
git clone https://github.com/tencentyun/TIMSDK.git
# Go to the web project
cd TIMSDK/Web/Demo
# Install dependencies
npm install
GenerateTestUserSig
file via the path /public/debug/GenerateTestUserSig.js.GenerateTestUserSig
file, where SDKAppID
and Key
can be obtained in the IM console. Click the card of the target app to go to its basic configuration page.GenerateTestUserSig
file.Note:In this document, the method to obtain
UserSig
is to configure aSECRETKEY
in the client code. In this method, theSECRETKEY
is vulnerable to decompilation and reverse engineering. Once yourSECRETKEY
is disclosed, attackers can steal your Tencent Cloud traffic. Therefore, this method is only suitable for locally running a demo project and feature debugging.
The correctUserSig
distribution method is to integrate the calculation code ofUserSig
into your server and provide an app-oriented API. WhenUserSig
is needed, your app can send a request to the business server to obtain a dynamicUserSig
. 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:
Was this page helpful?