SrtInputSettings.onConnectionStatusChange property

Called when the connection status has changed (e.g. when the SRT socket is closed)

Signature:

onConnectionStatusChange?: (
    status: SrtInputStatus,
    sourceName: string | undefined) => void;