SockJS frames
A SockJS handler.
An exception that, if thrown by a SockJS source, will cause the SockJS to be closed with the given close message.
SockJS server settings
SockJS server settings
A function to calculate SockJS script src. Defaults to "http://cdn.sockjs.org/sockjs-0.3.min.js".
If true websocket are enabled, false otherwis. Defaults to true.
Some hosting providers enable sticky sessions only to requests that have JSESSIONID cookie set. This setting controls if the server should set this cookie to a dummy value. By default setting JSESSIONID cookie is disabled. More sophisticated behaviour can be achieved by supplying a SockJSSettings.CookieCalculator.
Interval at which heartbeat frame should be sent. Defaults to 25 seconds.
The session will be closed if does not receive any connection during this time. Defaults to 5 seconds.
Quota in bytes for a single streaming request: after the quota is reached the request will be closed by the server to let the client GC received messages. Defaults to 128Kb.
Maximum number of messages kept in the 'send' buffer, used by xhr_send and jsonp_send. If the buffer fills further messages will be rejected. Defaults to 256.
Maximum size of the session buffer in bytes. Transports that emulate websocket needs to store outgoing messages in between client reconnects (after a long poll or a streaming request completes). When the buffer fills the session flow will backpressure. Defaults to 64Kb.
Helper with common cookie functions
An exception that, if thrown by a SockJS source, will cause the SockJS to be closed with the given close message. This is a convenience that allows the SockJS to close with a particular close code without having to produce generic Messages.