Class Client
Client
Class Declared in packages/sdk/client/src/client/client.ts:44
The Client class encapsulates the core client-side API of DXOS.
Constructors
constructor(options)
Returns: Client
Arguments:
options
: ClientOptions
Properties
version
Type: "0.2.3"
The version of this client API.
config
Type: Config
Current configuration object.
halo
Type: HaloProxy
HALO credentials.
initialized
Type: boolean
Returns true if the client has been initialized. Initialize by calling .initialize()
.
mesh
Type: MeshProxy
MESH networking.
services
Type: ClientServicesProvider
Current client services provider.
shell
Type: Shell
spaces
Type: SpaceList
status
Type: MulticastObservable<"null" | SystemStatus>
Client services system status.
Methods
[custom]()
Returns: string
Arguments: none
destroy()
Cleanup, release resources. Open/close is re-entrant.
Returns: Promise<void>
Arguments: none
diagnostics(options)
Get client diagnostics data.
Returns: Promise<any>
Arguments:
options
: JsonKeyOptions
initialize()
Initializes internal resources in an idempotent way. Required before using the Client instance.
Returns: Promise<void>
Arguments: none
reset()
Resets and destroys client storage. Warning: Inconsistent state after reset, do not continue to use this client instance.
Returns: Promise<void>
Arguments: none
resumeHostServices()
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>
Arguments: none
toJSON()
Returns: object
Arguments: none