@Override public void configureWebSocketTransport(WebSocketTransportRegistration registration) { registration.addDecoratorFactory(new WebSocketHandlerDecoratorFactory() { @Override public WebSocketHandler decorate(WebSocketHandler handler) { ProxyWebSocketHandler proxyWebSocketHandler = new ProxyWebSocketHandler( handler, stompClient, webSocketHttpHeadersCallback, messagingTemplate, zuulPropertiesResolver, zuulWebSocketProperties); proxyWebSocketHandler.errorHandler(proxyWebSocketErrorHandler); return proxyWebSocketHandler; } }); }
@Override public void configureWebSocketTransport(WebSocketTransportRegistration registration) { registration .setMessageSizeLimit(64 * 1024) .setSendBufferSizeLimit(1024*10 * 1024) .setSendTimeLimit(60 * 1000); }
@Override public void configureWebSocketTransport(WebSocketTransportRegistration arg0) { }
@Override public void configureWebSocketTransport(final WebSocketTransportRegistration registration) { registration .setMessageSizeLimit(5000 * 1024) // Max incoming message size => 5Mo .setSendBufferSizeLimit(5000 * 1024); // Max outgoing buffer size => 5Mo }
@Override public void configureWebSocketTransport(WebSocketTransportRegistration registration) { registration.addDecoratorFactory(handler -> new SessionCacheWebSocketHandler(handler, webSocketSessionStore)); }
@Override public void configureWebSocketTransport(WebSocketTransportRegistration registration) { registration .setSendTimeLimit(15*1000) //max time allowed when sending .setSendBufferSizeLimit(512*1024); //set 0 to disable buffering }
@Override public void configureWebSocketTransport(WebSocketTransportRegistration registration) { registration.setSendTimeLimit(15 * 1000).setSendBufferSizeLimit(512 * 1024); }
@Override public void configureWebSocketTransport(WebSocketTransportRegistration registration) { //registration. }
@Override public void configureWebSocketTransport(WebSocketTransportRegistration registration) { registration.addDecoratorFactory(wsConnectHandlerDecoratorFactory()); }
@Override public void configureWebSocketTransport(final WebSocketTransportRegistration registry) { }
@Override public void configureWebSocketTransport(WebSocketTransportRegistration registration) { registration.setSendTimeLimit(sendTimeLimit).setSendBufferSizeLimit(sendBufferSizeLimit * 1024); registration.setMessageSizeLimit(messageSizeLimit * 1024); }
@Override public void configureWebSocketTransport(WebSocketTransportRegistration registration) { registration.setSendTimeLimit(15 * 1000).setSendBufferSizeLimit(512 * 1024); registration.setMessageSizeLimit(128 * 1024); }
@Override public void configureWebSocketTransport(WebSocketTransportRegistration registry) { }