
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@livekit/react-core
Advanced tools
npm install --save @livekit/react-core livekit-client
The provided components make use of two hooks: useRoom and useParticipant, they will help you manage internal LiveKit callbacks and map them into state variables that are ready-to-use from React components.
Using the connect function returned by useRoom will ensure that callbacks are registered automatically and the other state variables are updated when changes take place in the room.
import { useRoom, useParticipant } from '@livekit/react-core'
export const MyComponent = () => {
const roomOptions: RoomOptions = {
adaptiveStream: true,
dynacast: true,
}
const { connect, isConnecting, room, error, participants, audioTracks } = useRoom(roomOptions);
async function init() {
// initiate connection to the livekit room
await connect(livekitUrl, livekitToken);
// request camera and microphone permissions and publish tracks
await room.localParticipant.enableCameraAndMicrophone();
...
}
useEffect(() => {
init().catch(console.error)
}, [])
return (...)
}
export const ParticipantRenderer = ({ participant }) => {
const { isSpeaking, subscribedTracks } = useParticipant(participant)
...
}
When building your custom UI, it's helpful to use track renderers that are provided in this library. AudioRenderer and VideoRenderer would render an audio and video track, respectively.
FAQs
LiveKit Core React SDK
We found that @livekit/react-core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 20 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.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.