MediaSFU React Native
    Preparing search index...

    Function disconnectUserSelf

    • Disconnects the user from the specified room and bans them.

      Parameters

      • options: DisconnectUserSelfOptions

        The options for disconnecting the user.

        • member: string
        • roomName: string
        • socket: Socket
        • OptionallocalSocket?: Socket

      Returns Promise<void>

      A promise that resolves when the disconnection request has been emitted.

      await disconnectUserSelf({
      member: 'user123',
      roomName: 'main-room',
      socket: socketInstance,
      localSocket: localSocketInstance
      });