Interface WebsocketConnector

All Known Implementing Classes:
JdkWebsocketConnector

public interface WebsocketConnector
Creates low-level websocket sessions for Fluxzero runtime clients.

This interface is intentionally smaller than Jakarta's container API. Fluxzero clients only need a binary message transport with handshake metadata, ping support, lifecycle callbacks, and session state.

  • Method Details

    • connect

      Opens a WebSocket connection to the given URI.
      Parameters:
      endpoint - endpoint callbacks for the new session
      options - connection options; implementations may accept null as default options
      uri - target WebSocket URI
      Returns:
      an open WebSocket session
      Throws:
      Exception - when the connection cannot be established