Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • CommBroker

Index

Constructors

constructor

  • Returns CommBroker

Properties

Private randomName

randomName: number

Private services

services: string[]

Private streamMessages

streamMessages: Subject

Methods

clearServices

  • clearServices(): void
  • Clear all current registered services

    method

    clearServices

    Returns void

fire

  • With fire we push a stream of IMessages into our stream.

    method

    fire

    params

    IMessage

    Parameters

    Returns void

getAllServices

  • getAllServices(): Array<string>
  • Expose all services and data members.

    method

    getAllServices

    Returns Array<string>

    services

getService

  • getService(i_name: any): any
  • Get a registered service.

    method

    getService

    Parameters

    • i_name: any

    Returns any

    services member

getValue

  • getValue(i_name: any): any
  • Get a registered data member.

    method

    getValue

    Parameters

    • i_name: any

    Returns any

    m_services member

onEvent

  • onEvent(event: string): unknown
  • Parameters

    • event: string

    Returns unknown

onInstance

  • onInstance(instance: any): unknown
  • Parameters

    • instance: any

    Returns unknown

onInstanceAndEvent

  • onInstanceAndEvent(instance: any, event: string): unknown
  • Parameters

    • instance: any
    • event: string

    Returns unknown

setService

  • setService(i_name: any, i_service: any): void
  • Register a service that others can query.

    method

    setService

    Parameters

    • i_name: any
    • i_service: any

    Returns void

    none

setValue

  • setValue(i_name: any, i_value: any, i_fireEvent?: string): void
  • Register a data member that others can query.

    method

    setValue

    Parameters

    • i_name: any
    • i_value: any
    • Optional i_fireEvent: string

    Returns void

    none

toString

  • toString(): string
  • Returns string

Generated using TypeDoc