Presence

Just because a service can be located doesn't mean it's currently online and active. In an unfortunate case, the service in question might be failing and/or temporarily unavailable.

Hydra offers thegetServicePresence()method to determine whether a service is currently available. If available an object like this is returned:

{
  "updatedOn": "2016-03-28T01:43:45.756Z"
}

If unavailable thengetServicePresence()returns a rejected promise.

results matching ""

    No results matching ""