maxTextMessageSize property

int maxTextMessageSize
final

The largest text message a session receives, in UTF-8 bytes; 8 KB by default (Tomcat's maxTextMessageBufferSize, which Spring's StandardWebSocketClient gets), -1 for no limit. A larger one is not read, and the session is closed with 1009 (message too big). Tomcat counts characters, so text outside ASCII reaches this limit sooner than Tomcat's.

Implementation

final int maxTextMessageSize;