Example usage for org.springframework.web.socket.config.annotation WebSocketTransportRegistration setMessageSizeLimit

List of usage examples for org.springframework.web.socket.config.annotation WebSocketTransportRegistration setMessageSizeLimit

Introduction

In this page you can find the example usage for org.springframework.web.socket.config.annotation WebSocketTransportRegistration setMessageSizeLimit.

Prototype

public WebSocketTransportRegistration setMessageSizeLimit(int messageSizeLimit) 

Source Link

Document

Configure the maximum size of an inbound sub-protocol message, such as a STOMP frame which may be aggregated from multiple WebSocket messages.

Usage

From source file:opensnap.config.WebSocketConfig.java

@Override
public void configureWebSocketTransport(WebSocketTransportRegistration registration) {
    registration.setMessageSizeLimit(1024 * 1024);
}