MediaSFU Angular
    Preparing search index...

    Class DisconnectUserSelf

    Service to handle self-disconnection and banning of a user from a room.

    DisconnectUserSelf

    This service manages the disconnection of a user from a specified room and initiates a ban on the user.

    disconnectUserSelf

    The options required to disconnect the user.

    The identifier of the member to be disconnected.

    The name of the room from which the user will be disconnected.

    The socket instance used to emit the disconnection and ban request.

    The local socket instance used to emit the disconnection request.

    A promise that resolves when the disconnection request is sent to the server.

    const disconnectUserSelfOptions = {
    member: 'user123',
    roomName: 'room456',
    socket: mySocketInstance
    localSocket: myLocalSocketInstance
    };
    await disconnectUserSelfService.disconnectUserSelf(disconnectUserSelfOptions);
    Index

    Constructors

    Methods

    Constructors

    Methods