Annotation Interface WebSocket
Annotation for classes to be WebSocket endpoints.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanReturns whether demand for WebSocket frames is automatically performed upon successful return from methods annotated withOnWebSocketOpen,OnWebSocketFrameandOnWebSocketMessage.
-
Element Details
-
autoDemand
boolean autoDemandReturns whether demand for WebSocket frames is automatically performed upon successful return from methods annotated with
OnWebSocketOpen,OnWebSocketFrameandOnWebSocketMessage.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
-