runBackendService | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function runBackendService

    • 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.

      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

      • Optionaloptions: WebHareServiceOptions

        Service options

      Returns Promise<WebHareService>