IcecastSourceConnectionResult type

The answer to an Icecast source. A refusal is sent to the source client as an HTTP status and reason phrase, which source clients display; the default is 403 Source not accepted.

Signature:

export type IcecastSourceConnectionResult = {
    accept: true;
    sourceName: string;
} | {
    accept: false;
    status?: number;
    reason?: string;
};