This document describes how to quickly run the IM demo for web.
If you already have an app, record its SDKAppID and obtain key information.
A Tencent Cloud account can create a maximum of 300 IM apps. If you want to create a new app, disable and delete an unwanted app first. Once an app (along with its SDKAppID) is deleted, the provided service and all its data are lost. Please proceed with caution.
SDKAppID, creation time, tag, and expiration time of the application created. Record the
Please store the key information properly to prevent disclosure.
Download the SDK and demo source code. For more information, see SDK and Demo Source Code.
Open the project in the web directory, and find the file
GenerateTestUserSig via the path /public/debug/GenerateTestUserSig.js.
Set relevant parameters in the
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 Generating UserSig on the Server.
Run the following command in the project terminal via the browser: