       #params:
       #  api_key: "eb34bd67.megadroneshare"
       headers:
-        Authorization: 'DroneApi apikey="eb34bd67.megadroneshare"'
+        Authorization: 'DroneApi apikey="#{apiKey}"'
 
   urlBase: ->
     @apiBase + @endpoint

    super(log, http, routeParams)

    request =
      url: @urlBase() + '/log?login=root&password=fish4403&api_key=eb34bd67.megadroneshare'

    angular.extend(request, atmosphereOptions)
    @atmosphere.init(request)

  enableXDR: true
  timeout : 60000
  fallbackTransport: 'jsonp' # Server might have issues with 'long-polling'
  headers:
    api_key: apiKey
  #onError: (resp) =>
  #  @log.error("Atmosphere error: #{resp}")
  #onTransportFailure: (msg, resp) =>
