peerix - v0.8.0
    Preparing search index...

    Interface ChannelStateEvent<M>

    Emitted when a data channel is created or received from a peer, or when it is opened or closed.

    interface ChannelStateEvent<M extends object = Metadata> {
        channel: RTCDataChannel;
        label: string;
        name: "channel:new" | "channel:open" | "channel:close";
        peer: Peer<M>;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index
    channel: RTCDataChannel

    Data channel associated with the event.

    label: string

    Label of the data channel.

    name: "channel:new" | "channel:open" | "channel:close"

    Name of the event.

    peer: Peer<M>

    Peer object containing connection details.