
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
@100mslive/react-sdk
Advanced tools
[](https://github.com/100mslive/web-sdks/actions/workflows/lint-test-build.yml) [.
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
[](https://github.com/100mslive/web-sdks/actions/workflows/lint-test-build.yml) [
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.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.