PortalsPubSub

Constructors

Link copied to clipboard

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun publish(topic: String, data: Any?)

Publish a message to registered native callbacks.

Link copied to clipboard
fun subscribe(topic: String, callback: (result: SubscriptionResult) -> Unit): Int

Subscribe to a topic.

Link copied to clipboard
fun unsubscribe(topic: String, subscriptionRef: Int)

Unsubscribes from a topic