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 Summary
Modifier and TypeMethodDescriptionconnect(WebsocketEndpoint endpoint, WebsocketConnectionOptions options, URI uri) Opens a WebSocket connection to the given URI.
-
Method Details
-
connect
WebsocketSession connect(WebsocketEndpoint endpoint, WebsocketConnectionOptions options, URI uri) throws Exception Opens a WebSocket connection to the given URI.- Parameters:
endpoint- endpoint callbacks for the new sessionoptions- connection options; implementations may acceptnullas default optionsuri- target WebSocket URI- Returns:
- an open WebSocket session
- Throws:
Exception- when the connection cannot be established
-