UNPKG

mediasfu-reactnative-expo

Version:

mediasfu-reactnative-expo – Expo-managed React Native WebRTC SDK for video conferencing, webinars, live streaming, broadcast, screen sharing, whiteboard, chat, recording, live subtitles, translation, and AI agent rooms on iOS, Android, and web. Prebuilt r

44 lines 1.41 kB
import { joinConRoom as sharedJoinConRoom } from 'mediasfu-shared'; /** * Joins a conference room using the provided options. * * @param {JoinConRoomOptions} options - The options for joining the conference room. * @param {Socket} options.socket - The socket instance to use for communication. * @param {string} options.roomName - The name of the room to join. * @param {string} options.islevel - The level of the user. * @param {string} options.member - The member identifier. * @param {string} options.sec - The security token. * @param {string} options.apiUserName - The API username. * * @returns {Promise<JoinConRoomResponse>} A promise that resolves with the response of the join operation. * * @example * ```typescript * const options = { * socket: socketInstance, * roomName: "s12345678", * islevel: "1", * member: "user123", * sec: "64CharacterLongSecretHere", * apiUserName: "user123", * }; * * try { * const response = await joinConRoom(options); * console.log("Room joined:", response); * } catch (error) { * console.error("Failed to join room:", error); * } * ``` */ export async function joinConRoom({ socket, roomName, islevel, member, sec, apiUserName, }) { return sharedJoinConRoom({ socket: socket, roomName, islevel, member, sec, apiUserName, }); } //# sourceMappingURL=joinConRoom.js.map