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

27 lines 968 B
import { disconnect as sharedDisconnect } from 'mediasfu-shared'; /** * Disconnects the user from the specified room and bans them. * * @param {DisconnectUserSelfOptions} options - The options for disconnecting the user. * @param {string} options.member - The username of the member to disconnect. * @param {string} options.roomName - The name of the room from which the user will be disconnected. * @param {Socket} options.socket - The socket instance used to emit the disconnection request. * @returns {Promise<void>} A promise that resolves when the disconnection request has been emitted. * * @example * ```typescript * await disconnectUserSelf({ * member: "user123", * roomName: "main-room", * socket: socketInstance, * }); * ``` */ export const disconnect = async ({ showAlert, redirectURL, onWeb }) => { return sharedDisconnect({ showAlert, redirectURL, onWeb, }); }; //# sourceMappingURL=disconnect.js.map