![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@livuvo/live-sdk
Advanced tools
Welcome to the documentation for the @livuvo/live-sdk library. This library facilitates seamless integration of your React application with the Interactify live service. The provided LivuvoLiveSDK component enables you to connect to Interactify server and render Live and Chat features.
You can install this package using npm:
npm install @livuvo/live-sdk
or yarn:
yarn add @livuvo/live-sdk
follow these steps:
import { LivuvoLiveSDK } from "@livuvo/live-sdk";
import "@livuvo/live-sdk/style.css";
Fetch the configuration data from below API endpoint: https://neo.interactify.live/authnz/api/v1/user-token/[SPACE-SLUG]/live/[LIVE-SLUG]/
Initialize the configuration and render the LivuvoLiveSDK component:
const userToken = ...;
<LivuvoLiveSDK userToken={userToken} />
isDesktop (optional): A boolean flag indicating whether the app is running in desktop mode or mobile mode. Default value is false
.
className (optional): A string that allows you to apply custom CSS classes to the component.
userToken (optional): A token representing the user, following the GLiveUserToken
type.
brokerURL (optional): A string representing the WebSocket broker URL. Default value is "wss://messaging.interactify.live/mqtt"
.
neoURL (optional): A string representing the Neo URL for the SDK.
streamerURL (optional): A string representing the URL for the streamer.
liveStreamerURL (optional): A string representing the URL for the live streamer.
productModalButton (optional): An object to customize button on product modal
import { LivuvoLiveSDK } from "./LivuvoLiveSDK";
<LivuvoLiveSDK
isDesktop={true}
userToken={userToken}
productModalButton={{
text: "View Product",
onClick: ({ product, onCancel }) => {
// you can close modal by calling onCancel();
onCancel();
// do anyting with product object which contains product details like image, url and ...
console.log("Product button clicked", product);
// default behaviour is
window.open(product.url);
},
}}
/>;
This library simplifies the integration of your React application with the Interactify live service. By following the steps outlined in this documentation, you can quickly set up the LivuvoLiveSDK component.
The endpoint URL for fetching user tokens is: https://neo.interactify.live/authnz/api/v1/user-token/[SPACE-SLUG]/live/[LIVE-SLUG]/
It's important to note that this endpoint should be accessed from the backend due to security considerations. This is because you need to provide a confidential Authorization token (Authorization header) as part of the request. To obtain an API token, follow these steps:
When making a request to the endpoint, include the following object in the request body: This object should be sent as part of the POST request to the specified URL.
{
"user_id": "USER_ID",
"display_name": "DISPLAY_NAME",
"chat": "rw"
}
Please ensure that you handle this sensitive information securely and follow best practices for API token management.
FAQs
## Introduction
We found that @livuvo/live-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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.