
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@livekit/react-core
Advanced tools
Note: Currently this library isn't compatible with React.StrictMode
. We are working on improvements in this area.
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'
export const MyComponent = () => {
const roomOptions: RoomOptions = {
adaptiveStream: true,
dynacast: true,
}
const { connect, isConnecting, room, error, participants, audioTracks } = useRoom(roomOptions);
// initiate connection to the livekit room
await connect(livekitUrl, livekitToken);
// request camera and microphone permissions and publish tracks
room.localParticipant.enableCameraAndMicrophone();
...
}
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
The npm package @livekit/react-core receives a total of 242 weekly downloads. As such, @livekit/react-core popularity was classified as not popular.
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 uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.