org.springframework.web.socket.handler.PerConnectionWebSocketHandler Java Examples

The following examples show how to use org.springframework.web.socket.handler.PerConnectionWebSocketHandler. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WebSocketTestConfiguration.java    From data-highway with Apache License 2.0 4 votes vote down vote up
@Bean
public WebSocketHandler webSocketHandler() {
  return new PerConnectionWebSocketHandler(WebSocketHandlerTest.class);
}
 
Example #2
Source File: WebSocketTestConfiguration.java    From data-highway with Apache License 2.0 4 votes vote down vote up
@Bean
public WebSocketHandler webSocketHandler() {
  return new PerConnectionWebSocketHandler(WebSocketHandlerTest.class);
}
 
Example #3
Source File: WebSocketConfiguration.java    From data-highway with Apache License 2.0 4 votes vote down vote up
@Bean
public WebSocketHandler webSocketHandler() {
  return new PerConnectionWebSocketHandler(OfframpWebSocketHandler.class);
}
 
Example #4
Source File: SpringBootWebSocketApplication.java    From spring-boot-tutorial with Creative Commons Attribution Share Alike 4.0 International 4 votes vote down vote up
@Bean
public WebSocketHandler snakeWebSocketHandler() {
    return new PerConnectionWebSocketHandler(SnakeWebSocketHandler.class);
}
 
Example #5
Source File: BootStrap.java    From MyBlog with Apache License 2.0 4 votes vote down vote up
public WebSocketHandler perEchoWebSocketHandler() {
    return new PerConnectionWebSocketHandler(ChatWebSocketHandler.class);
}
 
Example #6
Source File: WebSocketConfig.java    From cloudterm with MIT License 4 votes vote down vote up
@Bean
public WebSocketHandler terminalSocket() {
    WebSocketHandler webSocketHandler = new PerConnectionWebSocketHandler(TerminalSocket.class);
    return webSocketHandler;
}
 
Example #7
Source File: WebSocketConfig.java    From example-restful-project with MIT License 4 votes vote down vote up
/**
 * @return one teapot handler bean per WebSocket connection.
 */
@Bean
public WebSocketHandler teapotHandler() {
    return new PerConnectionWebSocketHandler(TeapotHandler.class);
}
 
Example #8
Source File: WebSocketConfig.java    From example-restful-project with MIT License 4 votes vote down vote up
/**
 * @return one console handler bean per WebSocket connection.
 */
@Bean
public WebSocketHandler consoleHandler() {
    return new PerConnectionWebSocketHandler(ConsoleHandler.class);
}
 
Example #9
Source File: SnakeConfig.java    From spring4ws-demos with Apache License 2.0 4 votes vote down vote up
@Bean
public WebSocketHandler snakeWebSocketHandler() {
	return new PerConnectionWebSocketHandler(SnakeWebSocketHandler.class);
}