Class YHocuspocusWebSocketConfigurer

java.lang.Object
net.carcdr.yhocuspocus.spring.websocket.YHocuspocusWebSocketConfigurer
All Implemented Interfaces:
org.springframework.web.socket.config.annotation.WebSocketConfigurer

public final class YHocuspocusWebSocketConfigurer extends Object implements org.springframework.web.socket.config.annotation.WebSocketConfigurer
Configures WebSocket handling for YHocuspocus.

Use the builder to configure paths, allowed origins, and interceptors:


 YHocuspocusWebSocketConfigurer configurer = YHocuspocusWebSocketConfigurer.builder()
     .server(hocuspocus)
     .path("/collaboration")
     .allowedOrigins("http://localhost:3000")
     .build();
 

The configurer implements WebSocketConfigurer and can be used directly with Spring's @EnableWebSocket annotation.

Since:
1.0.0