Class WebSocketClient

java.lang.Object
io.fluxcapacitor.javaclient.configuration.client.AbstractClient
io.fluxcapacitor.javaclient.configuration.client.WebSocketClient
All Implemented Interfaces:
Client

public class WebSocketClient extends AbstractClient
A Client implementation that connects to the Flux Platform using WebSocket connections.

This client enables full integration with the Flux runtime by delegating all gateway, tracking, and subsystem communication to remote endpoints defined by the WebSocketClient.ClientConfig. It is typically used in production and testing environments where communication with the Flux backend is required.

Usage


 WebSocketClient client = WebSocketClient.newInstance(
     WebSocketClient.ClientConfig.builder()
         .serviceBaseUrl("wss://my.flux.host")
         .name("my-service")
         .build());
 FluxCapacitor flux = FluxCapacitor.builder().build(client);
 
See Also: