subscription

abstract override fun subscription(options: SubscriptionOptions): Subscription

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


abstract fun subscription(projection: String, options: SubscriptionOptions = com.pubnub.api.v2.subscriptions.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). "__default__" is the canonical server projection name; "default" is accepted as a convenience alias.