Function runBackendService
- runBackendService(
servicename: string,
constructor: ConnectionFactory,
options?: WebHareServiceOptions,
): Promise<WebHareService>Parameters
- servicename: string
Name of the service (should follow the 'module:tag' pattern)
- constructor: ConnectionFactory
Constructor to invoke for incoming connections. This object will be marshalled through %OpenWebhareService
Optional
options: WebHareServiceOptionsService options
Returns Promise<WebHareService>
- servicename: string
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.