publish

fun publish(topic: String, message: dynamic, options: dynamic = definedExternally, callback: (dynamic) -> Unit? = definedExternally)

Publishes the message on the given topic with the given options and executing the callback function after ending.