publish ( topic: String , message: Object , options: Object )

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

options

Properties
Name Type Description
headers Object Message-headers

subscribe ( topic: String , callback: Function , options: Object ) { 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

options