Disable websocket

Doesn't work on CF otherwise
This commit is contained in:
Kris De Volder
2019-09-30 12:49:53 -07:00
parent 48a5ac634b
commit e1ef42c2f8

View File

@@ -66,7 +66,8 @@ public class DiagramWebsocketServer implements WebSocketConfigurer, Initializing
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
registry.addHandler(WsMessageHandler(), "/websocket")
.setAllowedOrigins("*")
.withSockJS();
.withSockJS()
.setWebSocketEnabled(false);
}
private final String END_MESSAGE = "@end";