Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DialogueController

Track and interact with current dialogues and engaged participants.

Hierarchy

  • DialogueController

Index

Properties

current

current: object

Collection of open current assigned to their audience ID.

Type declaration

  • [id: string]: Dialogue

Methods

audienceEngaged

  • audienceEngaged(id: string): boolean
  • Check if audience ID has an open dialogue.

    Parameters

    • id: string

    Returns boolean

audiences

  • audiences(b: State): object
  • Get set of possible audience IDs for a given

    Parameters

    Returns object

    • direct: string
    • room: string
    • user: string

disengage

  • Remove the audience from any dialogue or a given dialogue.

    Parameters

    Returns void

engage

  • Add an audience from state to a given dialogue.

    Parameters

    Returns void

engaged

  • Find an open dialogue from state for any possibly engaged audience.

    Parameters

    Returns Dialogue | undefined

engagedId

  • engagedId(b: State): string | undefined
  • Get the ID of engaged audience from current state (if any).

    Parameters

    Returns string | undefined

reset

  • reset(): void
  • Stop timers and clear collection of current (for tests)

    Returns void

Generated using TypeDoc