Methods
pub
- pub(topic: string, ...data: any): void
Parameters
topic: string
Rest ...data: any
Returns void
sub
- sub(topic: string, callback: Function): void
Parameters
topic: string
callback: Function
Returns void
unsub
- unsub(topic: string, fn?: Function): void
Parameters
topic: string
Optional fn: Function
Returns void