Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • PubSub

Index

Constructors

constructor

Properties

Static callbacks

callbacks: Callbacks = {}

Static id

id: number = 1

Methods

Static publish

  • publish<T>(channel: string, data: T): void
  • Type parameters

    • T

    Parameters

    • channel: string
    • data: T

    Returns void

Static subscribe

  • subscribe(channel: string, cb: CallableFunction): void
  • Parameters

    • channel: string
    • cb: CallableFunction

    Returns void

Static unsubscribe

  • unsubscribe(flag?: string): void
  • Parameters

    • Optional flag: string

    Returns void

Generated using TypeDoc