Get Connection
Get all Connection meetings
After successfully established connections, you will be able to get all the connected meetings from Meeting
class parameter called connections
.
import { useMeeting } from "@videosdk.live/react-sdk";
const { connections } = useMeeting();
console.log(connections);
// In response, you will get Map of all connected meetings
Get single connection meeting
You can get single meeting connection object by passing id
.
However, you can also consider connected meetingId
as a connectionId
.
note
For React developer, videosdk.live introduce new hook called useConnection
, which can handle single connected meeting by passing id.
import { useConnection } from "@videosdk.live/react-sdk";
const { connection } = useConnection("<connection-id>"); // <meeting-id> || <connection-id>
console.log(connection);
// In response, you will get single meeting connection
Got a Question? Ask us on discord