Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • HubClass

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

bus

bus: any[] = []

listeners

listeners: object

Type declaration

name

name: any

Methods

dispatch

  • dispatch(channel: any, payload: any, source?: string): void
  • Parameters

    • channel: any
    • payload: any
    • Default value source: string = ""

    Returns void

listen

  • listen(channel: any, listener: any, listenerName?: string): void
  • Parameters

    • channel: any
    • listener: any
    • Default value listenerName: string = "noname"

    Returns void

toListeners

  • toListeners(capsule: any): void

Static createHub