event-gateway
event-gateway copied to clipboard
Status endpoint on Events API
This endpoint can be used to make sure that the event-gateway is up. Currently, I override the port from 4000
to 8055
, but when I call it from the FDK, I cannot connect.
This will make it easier to debug where the problem lies.
Workaround right now is to register dummy function & HTTP subscription that will always return 200 OK
.
Other solution would be to add another type of built-in subscription http-status
:
{
"event": "http-status",
"path": "/status",
"method": "GET",
"statusCode": 200
}
That subscription is not backed by a function. It's handled by the EG and always returns a status code defined in statusCode
field.