f

Tag socket

Attributes 
NameRequiredTypeDescription
autoconnectfalsejavax.el.ValueExpression
(must evaluate to java.lang.Boolean)

If true, the client should connect to the channel automatically when the page loads.

channeltruejavax.el.ValueExpression
(must evaluate to java.lang.String)

The channel name to be passed to the underlying transport for this connection.

onerrorfalsejavax.el.ValueExpression
(must evaluate to java.lang.String)

The name of the JavaScript function that will handle errors.

onmessagefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)

The name of the JavaScript function that will handle be called when the server sends data.

transportfalsejavax.el.ValueExpression
(must evaluate to java.lang.String)

The desired protocol for this connection. Valid values are 'websocket' and 'sse', without the quotes. If not specified, websocket is assumed.

A simple fallback mechanism must be provided. If 'websocket' is the value of the transport, but the browser does not support WebSocket, fall back to using SSE. If SSE is not supported, this tag is effectively a no-op.