🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

trtc-sm

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trtc-sm

## 开发 ``` // 引入 TRTC 以及加密模块 [注意, 整个应用都需要使用该 TRTC 模块, 不可使用官方提供的TRTC] import { TRTC, useClientCrypto } from 'trtc-sm'

0.0.2
latest
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

TRTC 国密加密版本

开发

// 引入 TRTC 以及加密模块 [注意, 整个应用都需要使用该 TRTC 模块, 不可使用官方提供的TRTC]
import { TRTC, useClientCrypto } from 'trtc-sm'

// 初始化 TRTC, 配置功能. 具体参考官方文档
const client = TRTC.createClient({
  mode: this.mode,
  // mode: 'live',
  sdkAppId: SDKAPPID,
  userId: userID,
  userSig: userSig,
  useStringRoomId: useStringRoomID,
});

// 加密 [key 是后端提供的国密对称加密key]
useClientCrypto(client, key)

FAQs

Package last updated on 18 Apr 2023

Did you know?

Socket

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