Skip to main content
Version: 0.1.x

Meeting Consumer - React

Using meeting consumer

A React component that subscribes to context changes. Meeting Consumer updated to every change in the instance of meeting, participant and streams.

It requires function as child. The function receives the current context value and returns a React node.

Meeting Provider
<MeetingConsumer
{...{
onParticipantJoined: (participant) => {
setParticipant(participant);
},
//All Event Callbacks can be specified here
}}
>
{({
meetingId,
//All Properties can be specified here

join,
leave,
//All methods can be specified here
}) => {
return <MeetingView />;
}}
</MeetingConsumer>

Properties

Methods

Event Callbacks

Got a Question? Ask us on discord