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

    Function openBackendService

    Open a WebHare backend service

    Service name (a module:service pair). Add this name to the BackendServices interface for automatic service type discovery

    Arguments to pass to the constructor

    timeout: Maximum time to wait for the service to come online in msecs (default: 30sec) linger: If true, service requires an explicit close() and will keep the process running

    Type definition of the service class that implements this service.

    • Type Parameters

      Parameters

      • name1: ServiceName
      • Optionalargs: unknown[]
      • Optionaloptions: BackendServiceOptions

      Returns Promise<GetBackendServiceInterface<ServiceName>>

    • Type Parameters

      • Service extends object

      Parameters

      • name: string
      • Optionalargs: unknown[]
      • Optionaloptions: BackendServiceOptions

      Returns Promise<ConvertToClientInterface<Service>>