subscription

abstract fun subscription(options: SubscriptionOptions = EmptyOptions): Subscription

Returns a com.pubnub.api.v2.subscriptions.Subscription that can be used to subscribe to this Subscribable.

Return

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

Parameters

options