@dxos/react-client
    Preparing search index...

    Class Client

    The Client class encapsulates the core client-side API of DXOS.

    Index

    Constructors

    Properties

    reloaded: Event<void>

    Emitted after the client is reset and the services have finished restarting.

    version: "0.8.2"

    The version of this client API.

    Accessors

    • get config(): Config

      Current configuration object.

      Returns Config

    • get edge(): EdgeHttpClient

      EDGE client. This API is experimental and subject to change.

      Returns EdgeHttpClient

    • get graph(): Hypergraph

      Returns Hypergraph

      Temporary.

    • get halo(): Halo

      HALO credentials.

      Returns Halo

    • get initialized(): boolean

      Returns true if the client has been initialized. Initialize by calling .initialize().

      Returns boolean

    • get mesh(): MeshProxy

      MESH networking.

      Returns MeshProxy

    • get shell(): Shell

      Shell API.

      Returns Shell

    • get spaces(): Echo

      ECHO Spaces.

      Returns Echo

    • get status(): MulticastObservable<null | SystemStatus>

      Client services system status.

      Returns MulticastObservable<null | SystemStatus>

    Methods

    • Returns string

    • Add schema types to the client.

      Parameters

      • types: AnyNoContext[]

      Returns this

    • Cleanup, release resources. Open/close is re-entrant.

      Returns Promise<void>

    • Get client diagnostics data.

      Parameters

      • Optionaloptions: JsonKeyOptions

      Returns Promise<any>

    • Initializes internal resources in an idempotent way. Required before using the Client instance.

      Returns Promise<void>

    • Test and repair database.

      Returns Promise<any>

    • Resets and destroys client storage. This will currently leave the client in a closed state. Re-using the client after reset is not currently supported.

      Returns Promise<void>

    • Reinitialized the client session with the remote service host. This is useful when connecting to a host running behind a resource lock (e.g., HALO when SharedWorker is unavailable).

      Returns Promise<void>

    • Returns {
          halo: undefined | HaloProxy;
          initialized: boolean;
          mesh: undefined | MeshProxy;
          spaces: undefined | SpaceList;
      }

    • Returns string