       logger.error("Failed to repull session #{error}")
 
   _on_open : (resolve, reject) ->
-    logger.debug("Websocket connection is now open")
+    logger.debug("Websocket connection #{@_number} is now open")
     @_pending_ack = [resolve, reject]
     @_current_handler = (message) =>
       @_awaiting_ack_handler(message)

      @_current_handler(msg)

  _on_close : (event) ->
    logger.info("Lost websocket connection, #{event.code} (#{event.reason})")
    @socket = null

    if @_pending_ack?

      @_schedule_reconnect(2000)

  _on_error : (reject) ->
    logger.debug("Websocket error on socket  #{@_number}")
    reject(new Error("Could not open websocket"))

  _close_bad_protocol : (detail) ->
