onMessagesRemoved_(messages) {
    if (messages.length == 0) {
      return;
    }

    for (let message of messages) {
      this.totalMessageSize_ -= mr.RouteMessage.stringLength(message);
      if (mr.RouteMessage.isBinary(message)) {
        this.binaryMessageCount_--;
      }
    }
  }
/**
   * Update message size and binary message counters as |messages| are being
   * removed from the queue.
   * @param {!Array<!mr.RouteMessage>} messages
   * @private
   */
Update message size and binary message counters as |messages| are being
removed from the queue.
@param {!Array} messages
@private
Update message size and binary message counters as |messages| are being removed from the queue . @param { !Array } messages @private
onMessagesRemoved_(messages) {
    if (messages.length == 0) {
      return;
    }
    for (let message of messages) {
      this.totalMessageSize_ -= mr.RouteMessage.stringLength(message);
      if (mr.RouteMessage.isBinary(message)) {
        this.binaryMessageCount_--;
      }
    }
  }
onMessagesRemoved_ ( messages ) { if ( messages . length == 0 ) { return ; } for ( let message of messages ) { this . totalMessageSize_ -= mr . RouteMessage . stringLength ( message ) ; if ( mr . RouteMessage . isBinary ( message ) ) { this . binaryMessageCount_ -- ; } } }
Update message size and binary message counters as |messages| are being
 removed from the queue.
Update message size and binary message counters as |messages| are being removed from the queue .