Skip to main content

Establish Connection between Meetings

Methods#

  • connectTo - This method is used for establishing connection between rooms. This method accept meetingId and payload as an object.

Event#

  • connection-open - Whenever connection between two rooms established successfully, this event will trigger and return Connection list.

Example#

Meeting_A wants to connect with Meeting_B, now in this case Meeting_A will use connectTo method and pass meeintgId and payload.

connectTo({ meetingId: "Meeting_B_ID", payload: "Hello Everyone." });

After using this method, connection-open event will be emitted at both meetings and then Meeting_A & Meeting_B gets connected to each other.

Method and Event Code#

// Create Connection to Meeting Bmeeting.connectTo({ meetingId: "Meeting_B_ID", payload: "Hello Everyone." });
//  This event will be emitted to participants of both meetings, Meeting A & Meeting Bmeeting.on("connection-open", (connection) => {  console.log("Connection", connection);});