sip.js.subscription.md

September 26, 2022 ยท View on GitHub

Home > sip.js > Subscription

Subscription interface

Subscription.

Signature:

export interface Subscription 

Remarks

https://tools.ietf.org/html/rfc6665

Properties

PropertyModifiersTypeDescription
autoRefreshbooleanIf true, refresh subscription prior to expiration. Default is false.
delegateSubscriptionDelegate | undefinedSubscription delegate.
idstringThe subscription id.
subscriptionExpiresnumberSubscription expires. Number of seconds until the subscription expires.
subscriptionStateSubscriptionStateSubscription state.

Methods

MethodDescription
dispose()Destroy subscription.
refresh()4.1.2.2. Refreshing of Subscriptions https://tools.ietf.org/html/rfc6665\#section-4.1.2.2
subscribe(delegate, options)Send re-SUBSCRIBE request. Refreshing a subscription and unsubscribing. https://tools.ietf.org/html/rfc6665\#section-4.1.2.2
unsubscribe()4.1.2.3. Unsubscribing https://tools.ietf.org/html/rfc6665\#section-4.1.2.3