SrtConnectionInputSettings.onConnectionHealth property
Called periodically with this connection’s health. Measurements only — you decide the policy (e.g. close() the node to drop the connection).
Signature:
onConnectionHealth?: (health: SrtConnectionHealth) => void;