End Connection Meeting
Method
- end - If you want to end connected meetings,
connection.meeting.end
method is used. After executing this method, all participants of that meeting will leave automatically.
Example
Meeting_A is connected with Meeting_B, participant of Meeting_A wants to end Meeting_B, now Meeting_A participant will use connection.meeting.end
to end Meeting_B and all the participants joined in Meeting_B will leave.
import { useConnection } from "@videosdk.live/react-sdk";
// Get meeting B connection
const { connection } = useConnection("<meeting-B-id>");
// End Meeting B
const onClick = () => {
connection.meeting.end();
};
Got a Question? Ask us on discord