spring-framework / org.springframework.web.socket.messaging / WebSocketStompClient / setInboundMessageSizeLimit

setInboundMessageSizeLimit

open fun setInboundMessageSizeLimit(inboundMessageSizeLimit: Int): Unit

Configure the maximum size allowed for inbound STOMP message. Since a STOMP message can be received in multiple WebSocket messages, buffering may be required and this property determines the maximum buffer size per message.

By default this is set to 64 * 1024 (64K).