peerix - v0.8.0
    Preparing search index...

    Interface ListenerOptions

    Options for subscribing to events.

    const controller = new AbortController();
    room.on("stream:add", onStream, { signal: controller.signal });
    // removes every handler subscribed with this signal
    controller.abort();
    interface ListenerOptions {
        signal?: AbortSignal;
    }
    Index
    signal?: AbortSignal

    Removes the handler when the signal is aborted.