five-on-it / apps/api/src/fleet-registry / checkAddresses
Function: checkAddresses()
checkAddresses(
heartbeat,guard):string|undefined
Defined in: apps/api/src/fleet-registry.ts:90
Why a heartbeat's addresses are refused, or undefined when both are the fleet's: the internal one plain http to an IPv4 address of its networks (or localhost when the loopback is one), with no credentials, query or path; the public one a WebSocket address under its domains (ws: only to localhost), with no credentials or query.
Parameters
heartbeat
Pick<FleetHeartbeat, "internalUrl" | "publicUrl">
guard
Returns
string | undefined