@cloudflare/realtimekit-react
v2.0.0
Published
A real-time video and audio SDK for building custom, collaborative communication experiences.
Maintainers
Keywords
Readme
Table of Contents
About The Project
A real-time video and audio SDK for building custom, collaborative communication experiences.
Built With
Installation
npm install @cloudflare/realtimekit-reactUsage
A meeting object can be created using the useRealtimeKitClient hook.
const [meeting, initMeeting] = useRealtimeKitClient();
useEffect(() => {
await initMeeting({
authToken: "<AuthTokenHere>",
defaults: {
audio: false,
video: false,
}
});
}, []);The meeting object is used for all interaction with Cloudflare's servers. For example, the following code snippet is used for a user to join a room.
await meeting.join();For more examples, please refer to the Documentation.
About
@cloudflare/realtimekit is created & maintained by Cloudflare, Inc.
The names and logos are trademarks of Cloudflare, Inc.
