OptionalsubscriberId: stringOptionallimit: numberOptionalareaIds: string[]OptionalsubscriberId: stringOptionallimit: numberOptionalhyperBridge: booleanOptionalareaIds: string[]OptionalhyperBridge: booleanOptionalhyperBridge: booleanOptionalhyperBridge: booleanStaticaddStaticaddStaticalarmStaticalarmsStaticauthorizeStaticcapabilitiesStaticdeleteStaticdetailsStaticdoorbellStaticdoorbellsStaticgetOptionalsubscriberId: stringStatichouseOptionallimit: numberStatichouseStatichousesStatichouseStaticlockStaticlockOptionalhyperBridge: booleanStaticlocksStaticpinsStaticsetStaticstatusStaticstatusOptionalhyperBridge: booleanStaticsubscribeOptionalcallback: anyStaticunlatchStaticunlatchOptionalhyperBridge: booleanStaticunlockStaticunlockOptionalhyperBridge: booleanStaticuserStaticvalidateStaticwakeup
Fully tear down this August instance: clears the session token and destroys any PubNub subscription. Call this when you're done with the instance and want to release all resources (WebSocket connection, listeners, timers).
Unlike end(), which is called internally after most API calls and only clears the HTTP auth token, destroy() also tears down the PubNub connection used by subscribe(). After destroy(), any active subscriptions on this instance are stopped.