Class WebSocketClient

java.lang.Object
io.fluxzero.sdk.configuration.client.AbstractClient
io.fluxzero.sdk.configuration.client.WebSocketClient
All Implemented Interfaces:
Namespaced<Client>, Client

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

This client enables full integration with the Fluxzero 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 Fluxzero Runtime is required.

Usage

WebSocketClient client = WebSocketClient.newInstance(
    WebSocketClient.ClientConfig.builder()
        .runtimeBaseUrl("wss://my.fluxzero.host")
        .name("my-service")
        .build());
Fluxzero fluxzero = Fluxzero.builder().build(client);
See Also: