Java Code Examples for org.springframework.web.reactive.socket.server.WebSocketService

The following examples show how to use org.springframework.web.reactive.socket.server.WebSocketService. 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 WebsocketRoutingFilter websocketRoutingFilter(WebSocketClient webSocketClient,
		WebSocketService webSocketService,
		ObjectProvider<List<HttpHeadersFilter>> headersFilters) {
	return new WebsocketRoutingFilter(webSocketClient, webSocketService,
			headersFilters);
}
 
Example 2
public WebsocketRoutingFilter(WebSocketClient webSocketClient,
		WebSocketService webSocketService,
		ObjectProvider<List<HttpHeadersFilter>> headersFiltersProvider) {
	this.webSocketClient = webSocketClient;
	this.webSocketService = webSocketService;
	this.headersFiltersProvider = headersFiltersProvider;
}
 
Example 3
Source Project: spring-analysis-note   Source File: WebSocketHandlerAdapter.java    License: MIT License 4 votes vote down vote up
/**
 * Alternative constructor with the {@link WebSocketService} to use.
 */
public WebSocketHandlerAdapter(WebSocketService webSocketService) {
	Assert.notNull(webSocketService, "'webSocketService' is required");
	this.webSocketService = webSocketService;
}
 
Example 4
Source Project: spring-analysis-note   Source File: WebSocketHandlerAdapter.java    License: MIT License 4 votes vote down vote up
/**
 * Return the configured {@code WebSocketService} to handle requests.
 */
public WebSocketService getWebSocketService() {
	return this.webSocketService;
}
 
Example 5
@Bean
public WebSocketService webSocketService() {
	return new HandshakeWebSocketService(getUpgradeStrategy());
}
 
Example 6
Source Project: java-technology-stack   Source File: WebSocketHandlerAdapter.java    License: MIT License 4 votes vote down vote up
/**
 * Alternative constructor with the {@link WebSocketService} to use.
 */
public WebSocketHandlerAdapter(WebSocketService webSocketService) {
	Assert.notNull(webSocketService, "'webSocketService' is required");
	this.webSocketService = webSocketService;
}
 
Example 7
Source Project: java-technology-stack   Source File: WebSocketHandlerAdapter.java    License: MIT License 4 votes vote down vote up
/**
 * Return the configured {@code WebSocketService} to handle requests.
 */
public WebSocketService getWebSocketService() {
	return this.webSocketService;
}
 
Example 8
@Bean
public WebSocketService webSocketService() {
	return new HandshakeWebSocketService(getUpgradeStrategy());
}
 
Example 9
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 10
Source Project: vertx-spring-boot   Source File: ServerAutoConfiguration.java    License: Apache License 2.0 4 votes vote down vote up
@Bean
public WebSocketHandlerAdapter webSocketHandlerAdapter(WebSocketService webSocketService) {
    return new WebSocketHandlerAdapter(webSocketService);
}
 
Example 11
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 12
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 13
@Bean
public WebSocketService webSocketService(
		RequestUpgradeStrategy requestUpgradeStrategy) {
	return new HandshakeWebSocketService(requestUpgradeStrategy);
}
 
Example 14
@Bean
public WebSocketService webSocketService() {
	return new HandshakeWebSocketService(getUpgradeStrategy());
}
 
Example 15
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 16
Source Project: soul   Source File: WebSocketPlugin.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * Instantiates a new Web socket plugin.
 *
 * @param webSocketClient  the web socket client
 * @param webSocketService the web socket service
 */
public WebSocketPlugin(final WebSocketClient webSocketClient, final WebSocketService webSocketService) {
    this.webSocketClient = webSocketClient;
    this.webSocketService = webSocketService;
}
 
Example 17
Source Project: soul   Source File: DividePluginConfiguration.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * Web socket plugin web socket plugin.
 *
 * @param webSocketClient  the web socket client
 * @param webSocketService the web socket service
 * @return the web socket plugin
 */
@Bean
public WebSocketPlugin webSocketPlugin(final WebSocketClient webSocketClient, final WebSocketService webSocketService) {
    return new WebSocketPlugin(webSocketClient, webSocketService);
}
 
Example 18
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();
}