MoqInputSettings.onConnection property

Called when a new publisher connects via QUIC or WebTransport (listener mode only). publishedNamespace is the full namespace tuple the publisher announced, as a list of segments — e.g. for the namespace <"stage", "primary"> it’s ["stage", "primary"]. Return accept with a sourceName, or reject to deny.

Signature:

onConnection?: (connectionIndex: number, remoteHost: string, publishedNamespace: string[]) => MoqConnectionResult;