SrtOutputSettings.onDisconnect property

On disconnect callback, notifying that an individual client connection has disconnected. This will be followed by a retry in caller mode, while in listener mode is relevant to an individual client (per the provided metadata), while the remaining clients remain connected.

Signature:

onDisconnect?: (info: {
        streamIndex: number;
    }) => void;