• atmosphere.js Main Method
  • subscribe(AtmosphereRequest)
  • publish(AtmosphereRequest)
  • unsubscribe()
  • atmosphere.AtmosphereRequest
  • Attributes
  • url [default = '']
  • webSocketUrl [default = null]
  • connectTimeout [default = -1]
  • reconnectInterval [default = 0]
  • timeout [default = 300000]
  • method [default = 'GET']
  • headers [default = {}]
  • contentType [default = '']
  • data [default = '']
  • suspend [default = 'true']
  • maxRequest [default = '-1']
  • maxStreamingLength [default = '10000000']
  • logLevel [default = 'info']
  • transport [default = 'long-polling']
  • fallbackTransport [default = 'long-polling']
  • fallbackMethod [default = 'GET']
  • webSocketImpl [default = null]
  • webSocketPathDelimiter [default = '@@]
  • enableXDR [default = 'false']
  • rewriteURL [default = 'false']
  • attachHeadersAsQueryString [default = 'true']
  • dropHeaders [default = 'true']
  • executeCallbackBeforeReconnect [default = 'false']
  • withCredentials [default = 'false']
  • trackMessageLength [default = 'false']
  • messageDelimiter [default = '|']
  • shared [default = 'false']
  • enableProtocol [default = true]
  • readResponseHeaders [default = 'false']
  • maxReconnectOnClose [default = '5']
  • pollingInterval [default = '0']
  • reconnectOnServerError [default ='true']
  • heartbeat.server [default='null']
  • closeAsync [default = 'false']
  • ackInterval [default = '0']
  • reconnectOnServerError [default = 'true']
  • reconnectOnWindowLocationChange [default = 'false']
  • handleOnlineOffline [default = 'true']
  • Functions
  • callback(AtmosphereResponse) [default = null]
  • onOpen(AtmosphereResponse)
  • onClose(AtmosphereResponse)
  • onMessage(AtmosphereResponse)
  • onError(AtmosphereResponse)
  • onReconnect(AtmosphereRequest, AtmosphereResponse)
  • onMessagePublished(AtmosphereRequest)
  • onClientTimeout(AtmosphereRequest)
  • onTransportFailure(errorMsg, AtmosphereRequest)
  • push(AtmosphereRequest)
  • push(data)
  • AtmosphereResponse
  • status [default = '200']
  • reason [default = '']
  • responseBody [default = '']
  • headers [default = []]
  • state [default = 'messageReceived']
  • transport [default = 'polling']
  • error [default = null]
  • request [default = null]
  • Example
  • Creating an AtmosphereRequest
  • Configuring attributes.
  • Configuring function.
  • Subscribing
  • Publishing