@dxos/client
    Preparing search index...

    Interface ClientServicesProvider

    Provide access to client services definitions and service handler.

    interface ClientServicesProvider {
        closed: Event<undefined | Error>;
        descriptors: ServiceBundle<ClientServices>;
        onReconnect?: (callback: () => Promise<void>) => void;
        reconnected?: Event<void>;
        services: Partial<ClientServices>;
        close(): Promise<unknown>;
        open(): Promise<unknown>;
    }

    Implemented by

    Index

    Properties

    closed: Event<undefined | Error>

    The connection to the services provider was terminated. This should fire if the services disconnect unexpectedly or during a client reset.

    descriptors: ServiceBundle<ClientServices>
    onReconnect?: (callback: () => Promise<void>) => void

    Register a callback to be invoked when services reconnect. The callback should re-establish any RPC streams. Reconnection waits for all callbacks to complete before emitting reconnected.

    reconnected?: Event<void>

    The underlying service connection was re-established. Fires after all reconnection callbacks have completed.

    services: Partial<ClientServices>

    Methods

    • Returns Promise<unknown>

    • Returns Promise<unknown>