Options
All
  • Public
  • Public/Protected
  • All
Menu

IService interface

IService is an interface describing the service instance returned by mage.core.serviceDiscovery.createService

For some examples of how you can use this API, see https://mage.github.io/mage/api.html#examples

export
interface

IService

Hierarchy

  • IService

Index

Methods

announce

  • announce(port: number, metadata: any, callback: function): void
  • Announce the service as a new available service instance

    memberof

    IService

    Parameters

    • port: number
    • metadata: any
    • callback: function
        • (error?: Error): void
        • Parameters

          • Optional error: Error

          Returns void

    Returns void

discover

  • discover(): void
  • Start listening for the presence of service instances

    memberof

    IService

    Returns void

on

once

removeAllListeners

removeListener