Function disconnectUserSelf

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

    Parameters

    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
    });