Annotation Interface OnMessage
@Documented
@Retention(RUNTIME)
@Target(METHOD)
@WebSocketMapping
@Inherited
public @interface OnMessage
Annotation that can be applied to a method that will receive WebSocket message frames. Largely mirrors the
equivalent annotation in
javax.websocket
and eventual support for the specification could be added in the future.- Since:
- 1.0
- Author:
- graemerocher
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionint
The maximum size of a WebSocket payload.
-
Element Details
-
maxPayloadLength
int maxPayloadLengthThe maximum size of a WebSocket payload.- Returns:
- The max size
- Default:
- 65536
-