Skip to main content
Version: 0.0.x

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-native-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 and ReactNative developer, videosdk.live introduce new hook called useConnection, which can handle single connected meeting by passing id.

import { useConnection } from "@videosdk.live/react-native-sdk";

const { connection } = useConnection("<connection-id>"); // <meeting-id> || <connection-id>

console.log(connection);
// In response, you will get single meeting connection