Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@100mslive/react-sdk
Advanced tools
[![Lint, Test and Build](https://github.com/100mslive/web-sdks/actions/workflows/lint-test-build.yml/badge.svg)](https://github.com/100mslive/web-sdks/actions/workflows/lint-test-build.yml) [![Bundle Size](https://badgen.net/bundlephobia/minzip/@100mslive
This package is a react wrapper over the core SDK(@100mslive/hms-video-store
).
An easy way to use the store, actions and notifications are provided via
React hooks.
Some other hooks are also provided for ease of use which wrap
over the primitive ones.
If someone is using class based react components, they'll be better off
with using the core sdk directly.
// npm
npm install @100mslive/react-sdk@latest --save
// yarn
yarn add @100mslive/react-sdk@latest
Add HMSRoomProvider
from @100mslive/react-sdk
at the top level of your component tree where you want to use the hooks. Wihout this the hooks will throw an error.
<HMSRoomProvider>
<YourComponent></YourComponent>
</HMSRoomProvider>
By default, when using HMSRoomProvider
room leave will be called when you are leaving/closing the tab.
To disable this behaviour, you can pass leaveOnUnload
as false
NOTE: The above leave might or might not be successfully sent to server as it depends on the browser implementation. This works on chromium based browsers.
These are hooks wrapper over the sdk things.
Refer to docs for a more detailed guide.
FAQs
[![Lint, Test and Build](https://github.com/100mslive/web-sdks/actions/workflows/lint-test-build.yml/badge.svg)](https://github.com/100mslive/web-sdks/actions/workflows/lint-test-build.yml) [![Bundle Size](https://badgen.net/bundlephobia/minzip/@100mslive
The npm package @100mslive/react-sdk receives a total of 21,728 weekly downloads. As such, @100mslive/react-sdk popularity was classified as popular.
We found that @100mslive/react-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.