publish
Publishes events to a channel with a topic. The dual to
subscribe
.
Description
The publish
operator publishes events at a node in a channel with the
specified topic. All subscribers
of the channel operator
receive the events immediately.
note
The publish
operator does not guarantee that events stay in their
original order.
topic: string (optional)
An optional topic for publishing events under. If unspecified, the operator
publishes events to the topic main
.