SrtInputNode.addPassphrase() method

Adds or updates a (route, user) access grant on this listener. The route is the streamid’s r= value (or the bare streamid); the user is claimed via u= in the streamid and PROVEN by the passphrase (omit user for the anonymous identity). Omit passphrase for an explicit clear-allowed grant — protected and clear streams then share one listener. Once the table is non-empty every connection must match a grant; register grants before sources connect. Listener mode only.

Signature:

addPassphrase(grant: {
        route: string;
        user?: string;
        passphrase?: string;
    }): void;

Parameters

Parameter Type Description

grant

{ route: string; user?: string; passphrase?: string; }

Returns:

void