Create a new ServiceListener or ServiceEmitter. Uses the passed name or handle as the indentifier for future creation/lookups. Should an instance with the handle (or name) already exist then this will be passed back.
Type of Service to create.
Name of the service to create.
ServiceBase extended constructor, giving an optional handle and constructor data.
A ServiceListener, ServiceEmitter or void value.
Add a new type of ServiceEmitter to the client. Should the ServiceEmitter already exist on the client with the handle/name, this will do nothing.
The name of the ServiceEmitter to add.
The constructed or pre-existing ServiceEmitter or void on failure.
Add a new type of ServiceListener to the client. Should the ServiceListener already exist on the client with the handle/name, this will do nothing.
The name of the ServiceListener to add.
The constructed or pre-existing ServiceListener or void on failure.
Dispatch to the specified emitter. This method exists as a shortcut to avoid having to retrieve a specific emitter before sending to it.
The ServiceEmitRequest to use. This will be dispatched to all ServiceEmitters.
An array of ServiceEmitResponses from all the ServiceEmitters.
Dispatch to a specific ServiceEmitter. This method exists as a shortcut to avoid having to retrieve a specific emitter before sending to it.
The handle of the ServiceEmitter to dispatch to.
Emitter appropriate data to send.
Data returned from the service represented by the ServiceEmitter.
Find a particular attached ServiceEmitter based upon its name.
Handle of the ServiceEmitter instance to find (name if no handle was set).
Instance of the ServiceEmitter found, or void if not found.
Find a particular attached ServiceListener based upon its handle.
Handle of the ServiceListener instance to find (name if no handle was set).
Instance of the ServiceListener found, or void if not found.
Retrieve the binary path for the Node dependencies.
A string containing the absolute path.
Retrieves and loads a ServiceListener or ServiceEmitter by name.
The name of the ServiceListener or ServiceEmitter to load.
The relevant ServiceFactory for the service.
Process a configuration file from YAML into a nested object.
The configuration file as a string.
The configuration object or void.
Retrieve a ProcBotConfiguration file from a ServiceEmitter or inbuilt route.
An object detailing the service to retrieve the configuration file from, and its location.
A Promise containing configuration object should one have been found, or void.
Generated using TypeDoc
The ProcBot class is a parent class that can be used for some top-level tasks: