Search in sources :

Example 1 with ServerWebSocketContainer

use of org.springframework.integration.websocket.ServerWebSocketContainer in project faf-java-server by FAForever.

the class WebsocketAdapterConfig method serverWebSocketContainer.

@Bean
public IntegrationWebSocketContainer serverWebSocketContainer() {
    ServerWebSocketContainer container = new ServerWebSocketContainer("/ws");
    container.setAllowedOrigins("*");
    return container;
}
Also used : ServerWebSocketContainer(org.springframework.integration.websocket.ServerWebSocketContainer) Bean(org.springframework.context.annotation.Bean)

Aggregations

Bean (org.springframework.context.annotation.Bean)1 ServerWebSocketContainer (org.springframework.integration.websocket.ServerWebSocketContainer)1