Class SpringWebSocketTransport

java.lang.Object
net.carcdr.yhocuspocus.spring.websocket.SpringWebSocketTransport
All Implemented Interfaces:
AutoCloseable, net.carcdr.yhocuspocus.transport.Transport

public class SpringWebSocketTransport extends Object implements net.carcdr.yhocuspocus.transport.Transport
Spring WebSocket transport implementation.

This class adapts a Spring WebSocketSession to the Transport interface, allowing YHocuspocus to work with Spring WebSocket connections.

Thread-safe implementation that handles:

  • Binary message transmission
  • Connection state tracking
  • Graceful closure with WebSocket close codes
  • Remote address extraction
Since:
1.0.0