namespace for Services related functions. To interact with a service you will need to create both a Provider and a Client.
Asynchronous Methods
Methods
(static) connect(options) → {Promise.<Client>}
Connect to a service, returns a promise for a Client instance for that service
Parameters:
Name | Type | Description |
---|---|---|
options |
ConnectOptions | Set of ConnectOptions |
Returns:
- Type
- Promise.<Client>
(static) onServiceConnect(identity, listener) → {Promise.<void>}
Listen for registered services
Parameters:
Name | Type | Description |
---|---|---|
identity |
Identity | |
listener |
EventListener |
Returns:
- Type
- Promise.<void>
(static) register()
Register a service, returns a promise for a Provider instance for your service
= * @returns {Promise.