Get the Newsletter

publish

A Method

publish(event: any, data?: any): void

Publishes a message.

Parameters

event: any
The event or channel to publish to.
data?: any
The data to publish on the channel.