Annotation Type WebSocket
-
@Documented @Retention(RUNTIME) @Target(TYPE) public @interface WebSocketTags a POJO as being a WebSocket class.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description BatchModebatchModeThe output frame buffering mode.intidleTimeoutThe time in ms (milliseconds) that a websocket may be idle before closing.intinputBufferSizeThe size of the buffer (in bytes) used to read from the network layer.intmaxBinaryMessageSizeThe maximum size of a binary message (in bytes) during parsing/generating.intmaxTextMessageSizeThe maximum size of a text message during parsing/generating.
-
-
-
-
maxBinaryMessageSize
int maxBinaryMessageSize
The maximum size of a binary message (in bytes) during parsing/generating.Binary messages over this maximum will result in a close code 1009
StatusCode.MESSAGE_TOO_LARGE- Default:
- -1
-
-
-
maxTextMessageSize
int maxTextMessageSize
The maximum size of a text message during parsing/generating.Text messages over this maximum will result in a close code 1009
StatusCode.MESSAGE_TOO_LARGE- Default:
- -1
-
-
-
batchMode
BatchMode batchMode
The output frame buffering mode.Default:
BatchMode.AUTO- Default:
- org.eclipse.jetty.websocket.api.BatchMode.AUTO
-
-