Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IClient<IN, IEventsList>

Type parameters

Hierarchy

  • IManager<IN, IEventsList>

Indexable

[key: string]: any

Index

Constructors

constructor

  • new IClient(id?: string): any
  • Parameters

    • Optional id: string

    Returns any

Properties

List

List: TClass<IN>

Optional client

client: any

emitter

emitter: EventEmitter

id

id: string

isDestroyed

isDestroyed: boolean

isStarted

isStarted: boolean

Methods

add

  • add(node: IN): this
  • Parameters

    • node: IN

    Returns this

destroy

  • destroy(): void
  • Returns void

emit

  • emit<IE>(eventName: IE, data: IEventsList[IE]): this
  • Type parameters

    • IE: keyof IEventsList

    Parameters

    • eventName: IE
    • data: IEventsList[IE]

    Returns this

generateId

  • generateId(): string
  • Returns string

off

  • off<IE>(eventName: IE, listener: function): this
  • Type parameters

    • IE: keyof IEventsList

    Parameters

    • eventName: IE
    • listener: function
        • (data: IEventsList[IE]): void
        • Parameters

          • data: IEventsList[IE]

          Returns void

    Returns this

on

  • on<IE>(eventName: IE, listener: function): this
  • Type parameters

    • IE: keyof IEventsList

    Parameters

    • eventName: IE
    • listener: function
        • (data: IEventsList[IE]): void
        • Parameters

          • data: IEventsList[IE]

          Returns void

    Returns this

once

  • once<IE>(eventName: IE, listener: function): this
  • Type parameters

    • IE: keyof IEventsList

    Parameters

    • eventName: IE
    • listener: function
        • (data: IEventsList[IE]): void
        • Parameters

          • data: IEventsList[IE]

          Returns void

    Returns this

remove

  • remove(node: IN): this
  • Parameters

    • node: IN

    Returns this

start

  • start(): Promise<void>

starting

  • starting(): Promise<void>

stop

  • stop(): Promise<void>

stopping

  • stopping(): Promise<void>

tracking

  • tracking(tracker: any): void

untracking

  • untracking(tracker: any): void

wrap

  • wrap(node: IN): this
  • Parameters

    • node: IN

    Returns this

Generated using TypeDoc