Class WebSocketTransport

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

public class WebSocketTransport extends Object implements net.carcdr.yhocuspocus.transport.Transport
WebSocket transport implementation using Jetty WebSocket.

This class adapts a Jetty WebSocket Session to the Transport interface, allowing YHocuspocus to work with 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