Interface: ActorsRegistry

x2node-ws. ActorsRegistry

Interface for actors registries.

Methods


lookupActor(handle [, creds])

Parameters:
Name Type Argument Description
handle string Actor handle from the authenticator.
creds string <optional>
Registry-specific actor credentials, if any.
Returns:
Actor record or a promise of it. Returning null or a promise that resolves to a null means the actor does not exist for the handle. If creds is provided, may also mean that the credentials are invalid. If a promise is returned and the promise is rejected, it indicates an unexpected internal error.
Type
module:x2node-common.Actor | Promise.<module:x2node-common.Actor>