Commit 7174e37d authored by Enriko Käsper's avatar Enriko Käsper
Browse files

Remove SockJS from websocket connection.

parent 83f51623
......@@ -47,8 +47,7 @@ public class WebSocketConfig implements WebSocketMessageBrokerConfigurer {
log.info("Websocket origins [{}]", origins);
registry.addEndpoint("/gs-guide-websocket")
// todo: enabled all origins for debugging purposes
.setAllowedOrigins("*")
.withSockJS();
.setAllowedOrigins("*");
}
@Override
......@@ -90,4 +89,4 @@ public class WebSocketConfig implements WebSocketMessageBrokerConfigurer {
sessionMap.clear();
}
}
\ No newline at end of file
}
......@@ -20,7 +20,7 @@ public class WebSocketTestConfig implements WebSocketMessageBrokerConfigurer {
@Override
public void registerStompEndpoints(StompEndpointRegistry registry) {
registry.addEndpoint("/gs-guide-websocket").setAllowedOrigins("*").withSockJS();
registry.addEndpoint("/gs-guide-websocket").setAllowedOrigins("*");
}
}
\ No newline at end of file
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment