use of org.springframework.web.socket.server.jetty.JettyRequestUpgradeStrategy in project ma-core-public by infiniteautomation.
the class MangoWebSocketConfigurer method handshakeHandler.
@Bean
public DefaultHandshakeHandler handshakeHandler() {
WebSocketPolicy policy = new WebSocketPolicy(WebSocketBehavior.SERVER);
policy.setInputBufferSize(8192);
// We don't want timeouts..
policy.setIdleTimeout(Integer.MAX_VALUE);
WebSocketServerFactory factory = new WebSocketServerFactory(policy);
return new DefaultHandshakeHandler(new JettyRequestUpgradeStrategy(factory));
}
Aggregations