StreamSourceSequenceSettings.onSequenceEnded property
Fires when the last source in the sequence has fully drained and there’s nothing more to emit. The node remains live; the client may appendSource() more entries to extend the sequence.
Signature:
onSequenceEnded?: () => void;