       @connect(@_okInterval)
 
   _ping: =>
+    console?.log "_ping", arguments
     # Ping long poll server to verify internet connectivity
     # jQuery CORS doesn't support timeouts and there is no way to access xhr2 object
     # directly so we can't manually set a timeout.

    super(delay)

  _request: =>
    # Set the Last Message Sequence in a query string.
    # Ideally we'd use an HTTP header, but android devices don't let us
    # set any HTTP headers for CORS requests.

      success: @_success
      error: @_error
      xhr: hackedXHR
      complete: (jqXhr) =>
        console?.log "XHR complete", arguments
        # Get the last sequence from the server if specified.
        if jqXhr.status == 200
          @_lastMessageSequence = jqXhr.getResponseHeader(@messageSequenceHeader)
          if @_lastMessageSequence == null
            console?.log 'ERROR: Unable to get last message sequnce from header'
    console?.log "_request END"

  stop: =>
    @_stopRequestLoop = true

  _success: (data, status, jqXhr) =>
    console?.log "_success", arguments
    # TODO we actually want to do this when the thing calls out... mmm right now it takes
    # up to 30s before we can call this thing.
    # Call the 'connected' callback if the connection succeeds.
