Options
All
  • Public
  • Public/Protected
  • All
Menu

This class sends membership changes for rooms in a linearized queue.

Hierarchy

  • MembershipQueue

Index

Constructors

Methods

Constructors

constructor

Methods

join

  • join(roomId: string, userId: string | undefined, req: ThinRequest, retry?: boolean): Promise<void>
  • Join a user to a room

    Parameters

    • roomId: string

      The roomId to join

    • userId: string | undefined

      Leave empty to act as the bot user.

    • req: ThinRequest

      The request entry for logging context

    • Default value retry: boolean = true

      Should the request retry if it fails

    Returns Promise<void>

leave

  • leave(roomId: string, userId: string, req: ThinRequest, retry?: boolean, reason?: undefined | string, kickUser?: undefined | string): Promise<void>
  • Leave OR kick a user from a room

    Parameters

    • roomId: string

      The roomId to leave

    • userId: string

      Leave empty to act as the bot user.

    • req: ThinRequest

      The request entry for logging context

    • Default value retry: boolean = true

      Should the request retry if it fails

    • Optional reason: undefined | string

      Reason for leaving/kicking

    • Optional kickUser: undefined | string

      The user to be kicked. If left blank, this will be a leave.

    Returns Promise<void>

queueMembership

  • queueMembership(item: QueueUserItem): Promise<void>

Generated using TypeDoc