Increase incomming message size up to 5Mo

This commit is contained in:
anthonyraymond 2017-11-15 21:27:51 +01:00
parent ab5a3be6e2
commit bb75037c9b

View file

@ -28,8 +28,8 @@ public class WebSocketConfig extends AbstractWebSocketMessageBrokerConfigurer {
@Override
public void configureWebSocketTransport(final WebSocketTransportRegistration registration) {
registration
.setMessageSizeLimit(1000 * 1024) // Max outgoing message size => 1Mo
.setSendBufferSizeLimit(5000 * 1024); // Max incoming message size => 5Mo
.setMessageSizeLimit(5000 * 1024) // Max incoming message size => 5Mo
.setSendBufferSizeLimit(5000 * 1024); // Max outgoing buffer size => 5Mo
}
@Override