
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
webrtc-frontend-library
Advanced tools
npm install webrtc-frontend-library --save
Import the components and constants from the package into the file:
import { VideoChat, LS_WEBRTK_TOKEN_KEY } from 'webrtc-frontend-library'
After logging the user into your application, you should set the access token in the local storage of the browser for the chat components:
localStorage.setItem(LS_WEBRTK_TOKEN_KEY, access_token)
After calling the function to refresh a token from your app, the new received token must be installed in local storage of the browser under the key LS_WEBRTK_TOKEN_KEY
and returned from the function.
import { VideoChat } from "chat-frontend-library";
<VideoChat
roomId="roomId"
handleError={cbHandleError}
handleClose={cbHandleClose}
user_locale='user_locale'
/>
prop | default | type | description |
---|---|---|---|
roomId | none | string | Room id to connect |
user_locale | ru/en | string | Chat interface language. The browser language is set by default |
cbHandleClose | none | function | A callback function that is called when the user clicks the leave call button |
cbHandleError | none | function | An asynchronous callback function that is called if the chat API call returns an error. Should return the new user token |
isDisabledButtonJoin | none | boolean | Disable or allow click on join call button |
FAQs
``` npm install webrtc-frontend-library --save ```
The npm package webrtc-frontend-library receives a total of 26 weekly downloads. As such, webrtc-frontend-library popularity was classified as not popular.
We found that webrtc-frontend-library demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.