WebSocketPolicy.setMaxTextMessageSize

The maximum size of a text message during parsing. <p> This is a memory conservation option, memory over this limit will not be allocated by Hunt for handling text messages. This applies to individual frames, whole message handling, and partial message handling. </p> <p> Text messages over this maximum will result in a close code 1009 {@link StatusCode#MESSAGE_TOO_LARGE} </p>

@param size the maximum allowed size of a text message.

class WebSocketPolicy
void
setMaxTextMessageSize
(
int size
)

Meta