publish

fun publish(topic: String, data: Any?)

Publish a message to registered native callbacks.

Parameters

topic

the topic name for the message

data

the message data