API Reference
    Preparing search index...

    Interface SendOptions

    Optional selectors/filters used by Peer.send.

    interface SendOptions {
        filter?: (
            options: { channel: RTCDataChannel; remote: RemotePeer },
        ) => boolean;
        id?: number;
        label?: string;
    }
    Index

    Properties

    Properties

    filter?: (options: { channel: RTCDataChannel; remote: RemotePeer }) => boolean

    Optional callback to allow or block sending to a remote channel.

    id?: number

    Target channel id.

    label?: string

    Target channel label.