Function runBackendService
- runBackendService<Constructor extends ConnectionFactory>(
servicename: string,
constructor: Constructor,
options?: BackendServiceOptions,
): Promise<WebHareService>Type Parameters
- Constructor extends ConnectionFactory
Parameters
- servicename: string
Name of the service (should follow the 'module:tag' pattern)
- constructor: Constructor
Constructor to invoke for incoming connections. This object will be marshalled through %OpenWebhareService
Optionaloptions: BackendServiceOptionsService options
Returns Promise<WebHareService>
Launch a WebHare service. Starts a WebHare service and pass the constructed objects to every incoming connection. The constructor can also be left empty - the service will then simply run until its shutdown or requires an autorestart.