List of usage examples for org.springframework.messaging.simp.stomp BufferingStompDecoder BufferingStompDecoder
public BufferingStompDecoder(StompDecoder stompDecoder, int bufferSizeLimit)
From source file:org.springframework.web.socket.messaging.StompSubProtocolHandler.java
@Override public void afterSessionStarted(WebSocketSession session, MessageChannel outputChannel) { if (session.getTextMessageSizeLimit() < MINIMUM_WEBSOCKET_MESSAGE_SIZE) { session.setTextMessageSizeLimit(MINIMUM_WEBSOCKET_MESSAGE_SIZE); }/* w ww . j a va2 s . c o m*/ this.decoders.put(session.getId(), new BufferingStompDecoder(this.stompDecoder, getMessageSizeLimit())); }