Skip to content

Documentation / @imvu/client / XmlRpcCoordinator

Class: XmlRpcCoordinator ​

Defined in: packages/client/src/client/XmlRpcCoordinator.ts:46

Owns the client's XML-RPC gateway session. Logs in lazily on the first call, persists the session across runs, re-authenticates once when the server reports the session invalid, and paces calls to a minimum interval.

Constructors ​

Constructor ​

ts
new XmlRpcCoordinator(options?): XmlRpcCoordinator;

Defined in: packages/client/src/client/XmlRpcCoordinator.ts:56

Parameters ​

ParameterType
options?XmlRpcCoordinatorOptions

Returns ​

XmlRpcCoordinator

Properties ​

gateway ​

ts
readonly gateway: XmlRpcGateway;

Defined in: packages/client/src/client/XmlRpcCoordinator.ts:47

Methods ​

_clear() ​

ts
_clear(): void;

Defined in: packages/client/src/client/XmlRpcCoordinator.ts:76

Internal

Called by Client.logout. The saved session is kept for the next run.

Returns ​

void


_setCredentials() ​

ts
_setCredentials(username, password): void;

Defined in: packages/client/src/client/XmlRpcCoordinator.ts:68

Internal

Called by Client.login; no gateway request is made until first use.

Parameters ​

ParameterType
usernamestring
passwordstring

Returns ​

void


authorizeProducts() ​

ts
authorizeProducts(products, options?): Promise<ProductAuthorization[]>;

Defined in: packages/client/src/client/XmlRpcCoordinator.ts:88

Resolve products to their current CFL URL, checksum and parent (ancestors included).

Parameters ​

ParameterType
productsreadonly ( | number | ProductAuthRequest)[]
options?AuthorizeProductsOptions

Returns ​

Promise<ProductAuthorization[]>


call() ​

ts
call(
   method, 
   params?, 
   options?
): Promise<XmlRpcValue>;

Defined in: packages/client/src/client/XmlRpcCoordinator.ts:83

Invoke a gateway method with the client's session.

Parameters ​

ParameterTypeDefault value
methodstringundefined
params?readonly XmlRpcValue[][]
options?CallOptions{}

Returns ​

Promise<XmlRpcValue>

Released under the MIT License.