   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) =>

    super(log, http, routeParams)

    request =
      url: @urlBase() + '/live?api_key=eb34bd67.megadroneshare'

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

      #params:
      #  api_key: "eb34bd67.megadroneshare"
      headers:
        Authorization: 'DroneApi apikey="#{apiKey}"'

  urlBase: ->
    @apiBase + @endpoint
