Annotation Interface WebSocket
Annotation for classes to be WebSocket endpoints.
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
Returns whether demand for WebSocket frames is automatically performed upon successful return from methods annotated withOnWebSocketOpen
,OnWebSocketFrame
andOnWebSocketMessage
.
-
Element Details
-
autoDemand
boolean autoDemandReturns whether demand for WebSocket frames is automatically performed upon successful return from methods annotated with
OnWebSocketOpen
,OnWebSocketFrame
andOnWebSocketMessage
.If the demand is not automatic, then
Session.demand()
must be explicitly invoked to receive more WebSocket frames (both control and data frames, including CLOSE frames).- Returns:
- whether demand for WebSocket frames is automatic
- Default:
- true
-