SrtMultiplexEgestSettings.onBind property
Called when the multiplex binds its port. Also the way to learn the port when 0 was requested — though SrtMultiplexEgest.port carries the same number once the multiplex has started.
Signature:
onBind?: (info: {
port: number;
}) => void;