Beispiel #1
0
 @Override
 public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
   registry.addHandler(echoHandler(), "/echo-ws");
   registry.addHandler(chatHandler(), "/chat-ws");
   registry.addHandler(echoHandler(), "/echo.sockjs").withSockJS();
   registry.addHandler(chatHandler(), "/chat.sockjs").withSockJS();
 }
 @Override
 public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
   HandshakeHandler handshakeHandler = new DefaultHandshakeHandler(this.upgradeStrategy);
   registry
       .addHandler(new EchoHandler(), "/echo")
       .setHandshakeHandler(handshakeHandler)
       .withSockJS();
   registry
       .addHandler(testServerHandler(), "/test")
       .setHandshakeHandler(handshakeHandler)
       .withSockJS();
 }
Beispiel #3
0
 @Override
 public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
   registry.addHandler(marcoHandler(), "/marco");
 }
Beispiel #4
0
 @Override
 public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
   registry.addHandler(callHandler(), "/call");
 }
 @Override
 public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
   registry.addHandler(myHandler(), "/chat").setAllowedOrigins("*");
 }
 @Override
 public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
   registry
       .addHandler(echoWebSocketHandler(), PARAMETER_UPDATE)
       .setAllowedOrigins("*"); // .withSockJS();
 }
Beispiel #7
0
 @Override
 public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
   registry.addHandler(handler, "/commands");
 }
 @Override
 public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
   String urls[] = new String[] {"/chat/topic/**", "/chat/queue/**"};
   logger.info("Registering Web Socket endpoints");
   registry.addHandler(webSocketHandler(), urls).setAllowedOrigins("*");
 }