@dxos/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.11.1" = DXOS_VERSION

    The version of this client API.

    Accessors

    • get resetting(): boolean

      True while an in-progress reset is tearing down services. Consumers that react to service disconnect/reconnect (e.g. to force a reload) should check this before choosing a reload target — mid-reset, the current route is stale and reloading to it would reopen now-cleared UI, so navigate to the origin instead.

      Returns boolean

    Methods

    • 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;
      }

    • Resolves once initialize() has completed. Waits indefinitely unless timeout is given, in which case it rejects with TimeoutError — opt-in because most consumers only want the completion signal, and bounding the session is the caller's job (see the app entry point).

      This is the completion signal, not the error channel: a failing initialize() rejects at its own call site, and this promise stays pending.

      Parameters

      • __namedParameters: { timeout?: number } = {}

      Returns Promise<void>