Skip to main content

Class ClientServicesProxy

Less than 1 minute

Class ClientServicesProxy

Declared in packages/sdk/client/src/services/service-proxy.ts:17open in new window

Implements services that are not local to the app. For example, the services can be located in Wallet Extension.

Constructors

constructor(_port, _timeout)open in new window

Returns: ClientServicesProxy

Arguments:

_port: RpcPort

_timeout: number

Properties

closedopen in new window

Type: Event<undefined | Error>

The connection to the services provider was termintaed.

This should fire if the services disconnect unexpectedly or during a client reset.

descriptorsopen in new window

Type: ServiceBundle<ClientServices>

proxyopen in new window

Type: ProtoRpcPeer<ClientServices>

servicesopen in new window

Type: ClientServices

Methods

close()open in new window

Returns: Promise<void>

Arguments: none

open()open in new window

Returns: Promise<void>

Arguments: none