Constructors
Protected
constructor
- new PubSub(options?): PubSub
Properties
Protected
nextStreamId
nextStreamId: number
Protected
Optional
prefix
prefix?: string
Protected
streams
streams: Object
Protected
streamsCount
streamsCount: number
Protected
subscribed
subscribed: Object
Methods
close
- close(callback?): void
Returns void
publish
- publish(channels, data, callback): void
Parameters
- channels: string[]
- data: Object
- callback: Object
Returns void
subscribe
- subscribe(channel, callback): void
Parameters
- channel: string
- callback: Object
Returns void