Java Code Examples for org.springframework.web.reactive.socket.server.support.HandshakeWebSocketService

The following examples show how to use org.springframework.web.reactive.socket.server.support.HandshakeWebSocketService. These examples are extracted from open source projects. 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
@Bean
public WebSocketService webSocketService() {
	return new HandshakeWebSocketService(getUpgradeStrategy());
}
 
Example 2
@Bean
public WebSocketService webSocketService() {
	return new HandshakeWebSocketService(getUpgradeStrategy());
}
 
Example 3
Source Project: vertx-spring-boot   Source File: ServerAutoConfiguration.java    License: Apache License 2.0 4 votes vote down vote up
@Bean
public WebSocketService webSocketService() {
    VertxRequestUpgradeStrategy requestUpgradeStrategy = new VertxRequestUpgradeStrategy();
    return new HandshakeWebSocketService(requestUpgradeStrategy);
}
 
Example 4
Source Project: webFluxTemplate   Source File: WebSocketRouter.java    License: MIT License 4 votes vote down vote up
@Bean
public WebSocketService webSocketService() {
    return new HandshakeWebSocketService(new ReactorNettyRequestUpgradeStrategy());
}
 
Example 5
Source Project: Spring-5.0-Cookbook   Source File: ReactiveChatSocketConfig.java    License: MIT License 4 votes vote down vote up
@Bean
public WebSocketService webSocketService() {
	return new HandshakeWebSocketService(new ReactorNettyRequestUpgradeStrategy());
}
 
Example 6
@Bean
public WebSocketService webSocketService(
		RequestUpgradeStrategy requestUpgradeStrategy) {
	return new HandshakeWebSocketService(requestUpgradeStrategy);
}
 
Example 7
@Bean
public WebSocketService webSocketService() {
	return new HandshakeWebSocketService(getUpgradeStrategy());
}
 
Example 8
Source Project: spring-reactive-playground   Source File: Application.java    License: Apache License 2.0 4 votes vote down vote up
@Bean
public WebSocketService webSocketService() {
	return new HandshakeWebSocketService(new ReactorNettyRequestUpgradeStrategy());
}
 
Example 9
Source Project: soul   Source File: DividePluginConfiguration.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * Web socket service web socket service.
 *
 * @return the web socket service
 */
@Bean
public WebSocketService webSocketService() {
    return new HandshakeWebSocketService();
}