unsubscribe(subscriptions = {}) {
    // Unsubscribe
    for (let method in subscriptions) {
      if (subscriptions.hasOwnProperty(method)) {
        const subscription = subscriptions[method]
        this.cometd.unsubscribe(subscription)
      }
    }
    // Remove subscription from queue
    const { index, queued } = this.getQueuedSubscription(subscriptions)
    if (queued) {
      this.subscribeQueue.splice(index, 1)
    }
  }
/**
   * Remove all subscriptions
   * @param {Object} subscriptions
   */
Remove all subscriptions
@param {Object} subscriptions
Remove all subscriptions @param { Object } subscriptions
unsubscribe(subscriptions = {}) {
    for (let method in subscriptions) {
      if (subscriptions.hasOwnProperty(method)) {
        const subscription = subscriptions[method]
        this.cometd.unsubscribe(subscription)
      }
    }
    const { index, queued } = this.getQueuedSubscription(subscriptions)
    if (queued) {
      this.subscribeQueue.splice(index, 1)
    }
  }
unsubscribe ( subscriptions = { } ) { for ( let method in subscriptions ) { if ( subscriptions . hasOwnProperty ( method ) ) { const subscription = subscriptions [ method ] this . cometd . unsubscribe ( subscription ) } } const { index , queued } = this . getQueuedSubscription ( subscriptions ) if ( queued ) { this . subscribeQueue . splice ( index , 1 ) } }
Remove all subscriptions
 @param {Object} subscriptions
Remove all subscriptions @param { Object } subscriptions
// Unsubscribe // Remove subscription from queue