function onReceivedProtocolEvent(e) {
    var details = e.details;

    // Return early if we've seen this event before.  Assumes that timestamps
    // are sufficiently high resolution to uniquely identify an event.
    if (knownEventTimestamps.hasOwnProperty(details.time)) {
      return;
    }

    knownEventTimestamps[details.time] = true;
    protocolEvents.push(details);

    var trafficContainer = $('traffic-event-container');

    // Scroll to the bottom if we were already at the bottom.  Otherwise, leave
    // the scrollbar alone.
    var shouldScrollDown = isScrolledToBottom(trafficContainer);

    var context = new JsEvalContext({ events: protocolEvents });
    jstProcess(context, trafficContainer);

    if (shouldScrollDown)
      scrollToBottom(trafficContainer);
  }
/**
   * Callback for incoming protocol events.
   * @param {Event} e The protocol event.
   */
Callback for incoming protocol events.
@param {Event} e The protocol event.
Callback for incoming protocol events . @param { Event } e The protocol event .
function onReceivedProtocolEvent(e) {
    var details = e.details;
    if (knownEventTimestamps.hasOwnProperty(details.time)) {
      return;
    }
    knownEventTimestamps[details.time] = true;
    protocolEvents.push(details);
    var trafficContainer = $('traffic-event-container');
    var shouldScrollDown = isScrolledToBottom(trafficContainer);
    var context = new JsEvalContext({ events: protocolEvents });
    jstProcess(context, trafficContainer);
    if (shouldScrollDown)
      scrollToBottom(trafficContainer);
  }
function onReceivedProtocolEvent ( e ) { var details = e . details ; if ( knownEventTimestamps . hasOwnProperty ( details . time ) ) { return ; } knownEventTimestamps [ details . time ] = true ; protocolEvents . push ( details ) ; var trafficContainer = $ ( 'traffic-event-container' ) ; var shouldScrollDown = isScrolledToBottom ( trafficContainer ) ; var context = new JsEvalContext ( { events : protocolEvents } ) ; jstProcess ( context , trafficContainer ) ; if ( shouldScrollDown ) scrollToBottom ( trafficContainer ) ; }
Callback for incoming protocol events.
Callback for incoming protocol events .
// Return early if we've seen this event before.  Assumes that timestamps // are sufficiently high resolution to uniquely identify an event. // Scroll to the bottom if we were already at the bottom.  Otherwise, leave // the scrollbar alone.