Class JavaScriptProtocol

java.lang.Object
org.atmosphere.cpr.AtmosphereInterceptorAdapter
org.atmosphere.interceptor.JavaScriptProtocol
All Implemented Interfaces:
AtmosphereInterceptor, AtmosphereConfigAware, InvokationOrder

public class JavaScriptProtocol extends AtmosphereInterceptorAdapter

An Interceptor that send back to a websocket and http client the value of HeaderConfig.X_ATMOSPHERE_TRACKING_ID.

Moreover, if any HeartbeatInterceptor is installed, it provides the configured heartbeat interval in seconds and the value to be sent for each heartbeat by the client. If not interceptor is installed, then "0" is sent to tell he client to not send any heartbeat.

Author:
Jeanfrancois Arcand