Class ClientConnection

java.lang.Object
net.carcdr.yhocuspocus.core.ClientConnection
All Implemented Interfaces:
AutoCloseable, ReceiveListener

public class ClientConnection extends Object implements ReceiveListener, AutoCloseable
Manages a client transport connection.

Handles authentication, message routing, and document multiplexing over a single transport connection. Transport-agnostic design allows use with WebSocket, HTTP, or other protocols.

Key responsibilities:

  • Authentication flow per document
  • Message queueing during authentication
  • Document multiplexing (multiple documents per connection)
  • Clean shutdown and resource cleanup

Note: Keepalive/ping mechanisms are handled by the transport layer (e.g., WebSocket ping/pong) to maintain transport-agnostic design.