예제 #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();
 }
예제 #3
0
 @Override
 public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
   registry.addHandler(marcoHandler(), "/marco");
 }
예제 #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();
 }
예제 #7
0
 @Override
 public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
   registry.addHandler(handler, "/commands");
 }
예제 #8
0
 @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("*");
 }