SrtOutputSettings.onConnection property

On connect callback, notifying that a new caller has connected (in listener mode) and providing the stream_id that was set on the socket

Signature:

onConnection?: (
    streamId: string,
    streamIndex: number,
    remoteHost: string) => void;