Interface: MessageBus

MessageBus

Methods

publish(topic, message, options)

Publish a message
Parameters:
Name Type Description
topic String The topic to which you want to publish your message
message Object The message to publish
options Object
Properties
Name Type Description
headers Object Message-headers

subscribe(topic, callback, options) → {Consumer}

Subscribe to a messaging-topic
Parameters:
Name Type Description
topic String The topic to which you want to subscribe
callback function function to be called when a message arrives
options Object
Returns:
Type
Consumer