English | 简体中文
The web demo is implemented based on the IM TUIKit. TUIKit provides features such as management of conversations, chats, groups, and profiles. With TUIkit, you can quickly build your own business logic.
Initiate a Conversation | Conversation List | Manage the Conversation List |
---|---|---|
Message List | Send Messages | Manage Group Chats |
---|---|---|
Group Notifications | My Group Chats | Search for and Join a Group Chat |
---|---|---|
Manage the Profile |
---|
Feature | Description |
---|---|
Conversation management | 1. Initiate a one-to-one or group chat. 2. Display the conversation list. 3. Manage the conversation list. |
Chat management | 1. Display the message list. 2. Send messages. 3. Manage group chats. |
Group management | 1. Display group notifications. 2. Display and manage group chats that a user belongs to or owns. 3. Search for and join a group chat. |
Profile management | Display and update the profile. |
Download the SDK and matching demo source code.
# Run the code in CLI
git clone https://github.com/tencentyun/TIMSDK.git
# Go to the web project
cd TIMSDK/Web/Demo
# Install dependencies of the demo
yarn install
cd TIMSDK/Web/Demo/src/TUIKit
# Install dependencies of the TUIKit
yarn install
-
Open the project in the web directory, and find the
GenerateTestUserSig
file via the path /debug/GenerateTestUserSig.js. -
Set required parameters in the
GenerateTestUserSig
file, whereSDKAppID
andKey
can be obtained in the IM console. Click the card of the target app to go to its basic configuration page. -
In the Basic Information area, click Display key, and copy and save the key information to the
GenerateTestUserSig
file.
! 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 application-oriented API. WhenUserSig
is needed, your application can send a request to the business server for a dynamicUserSig
. For more information, see the "Calculating UserSig on the Server" section of Generating UserSig.
# Launch the project
cd TIMSDK/Web/Demo
yarn serve