subscription

abstract override fun subscription(options: SubscriptionOptions): Subscription

Returns a Subscription to this channel's default-projection ref-channel.

Return

an inactive Subscription. You must call Subscription.subscribe to start receiving events.

Parameters

options

abstract fun subscription(): Subscription

Returns a Subscription to this channel's default-projection ref-channel.

Return

an inactive Subscription. You must call Subscription.subscribe to start receiving events.


abstract fun subscription(projection: String, options: SubscriptionOptions = EmptyOptions): Subscription

Returns a Subscription to this channel's events for the given projection.

"default" / "__default__" resolve to the base ref channel (id); any other value resolves to __{projection}__{id}. A blank projection is rejected (throws IllegalArgumentException).


abstract fun subscription(projection: String): Subscription

Returns a Subscription to this channel's events for the given projection.