subscribe

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

Subscribes to the given topic with the given options and executing the callback function after ending.