SubscriptionResult

data class SubscriptionResult(val topic: String, val data: Any?, val subscriptionRef: Int)

A class used for messages passed to subscriptions.

Constructors

Link copied to clipboard
fun SubscriptionResult(topic: String, data: Any?, subscriptionRef: Int)

Functions

Link copied to clipboard
fun toJSObject(): JSObject

Serializes the SubscriptionResult to a JSObject.

Properties

Link copied to clipboard
val data: Any?

the message data

Link copied to clipboard

the subscription reference ID

Link copied to clipboard

the subscription topic