Socket
Socket
Sign inDemoInstall

doloremvoluptatibus

Package Overview
Dependencies
4
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    doloremvoluptatibus


Version published
Maintainers
1
Install size
15.5 MB
Created

Readme

Source

Get Started

Step 1. Create an app

  1. Log in to the Chat console.
  2. Click Create Application, enter your app name, and click Confirm.
  3. After creation, you can see the status, service version, SDKAppID, creation time, tag, and expiration time of the new app on the overview page of the console.

Step 2. Obtain the SDKAppID and SECRETKEY

  1. Click the target app card to go to the basic configuration page of the app.
  2. In the Basic info area, click Display key, and then copy and save the key information, which is SECRETKEY.

Step 3. Download the source code and install dependencies

# Please run the following code in the terminal.
$ git clone https://github.com/TencentCloud/chat-uikit-react
$ cd chat-uikit-react
$ npm install && cd examples/live-chat && npm install

Step 4. Configure

  1. Open the examples/live-chat project and locate the GenerateTestUserSig.js file in ./examples/live-chat/src/debug/GenerateTestUserSig.js.
  2. Set the SDKAppID and SECRETKEY obtained at Step 2.

Step 5. Run the demo

$ cd examples/live-chat
$ npm run start

Send your first message

  1. Run the demo in two seperate tab pages.
  2. In each tab page, the logged-in userID will join a live room(also called Audio-Video Group in Tencent Cloud Chat) with the ID "live-room-1".
  3. Enter a message in the input box and press Enter to send it. Emoji/Image/Video/Document messages are supported.

Contact Us

Join a Tencent Cloud Chat developer group for Reliable technical support & Product details & Constant exchange of ideas.

  • Telegram group (EN): join
  • WhatsApp group (EN): join
  • Telegram group (ZH): join
  • WhatsApp group (ZH): join

Keywords

FAQs

Last updated on 04 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc