Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EventSource<T, T, T, T>

Type parameters

  • T

  • T

  • T

  • T

Hierarchy

  • EventSource

Implements

  • Event<T>
  • Event<T>
  • Event<T>
  • Event<T>

Index

Constructors

Properties

Methods

Constructors

constructor

  • new EventSource(name: string, log?: boolean): EventSource
  • new EventSource(name: string, log?: boolean): EventSource
  • new EventSource(name: string, log?: boolean): EventSource
  • Parameters

    • name: string
    • Optional log: boolean

    Returns EventSource

  • Parameters

    • name: string
    • Optional log: boolean

    Returns EventSource

  • Parameters

    • name: string
    • Optional log: boolean

    Returns EventSource

Properties

Private _id

_id: any

Private _name

_name: any

Private _shouldLog

_shouldLog: any

Private _subscriptions

_subscriptions: any = []

Methods

raise

  • raise(args: T): void
  • raise(args: T): void
  • raise(args: T): void
  • Parameters

    • args: T

    Returns void

  • Parameters

    • args: T

    Returns void

  • Parameters

    • args: T

    Returns void

subscribe

  • subscribe(onChange: function): Disposable
  • subscribe(onChange: function): Disposable
  • subscribe(onChange: function): Disposable
  • Parameters

    • onChange: function
        • (args: T): void
        • Parameters

          • args: T

          Returns void

    Returns Disposable

  • Parameters

    • onChange: function
        • (args: T): void
        • Parameters

          • args: T

          Returns void

    Returns Disposable

  • Parameters

    • onChange: function
        • (args: T): void
        • Parameters

          • args: T

          Returns void

    Returns Disposable