End Connection Meeting - Javascript
note
This page uses the following asynchronous methods. Refer to their API reference for the errors each Promise may reject with, and handle these rejections appropriately based on your use case.
Method
- end - If you want to end connected meetings,
connection.meeting.endmethod 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.
// Get meeting B connection
const connection = meeting.connections.get("<meeting-B-id>");
// End Meeting B
const onClick = async () => {
try {
await connection.meeting.end();
} catch (err) {
console.error("end failed:", err);
}
};
Got a Question? Ask us on discord

