Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • Socket score

Version published
Maintainers
1
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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc