peerix - v0.1.0
    Preparing search index...

    Interface RemotePeerChannelEvent

    Channel event data.

    interface RemotePeerChannelEvent {
        channel: RTCDataChannel;
        data?: any;
        error?: Error;
        id: string;
        label: string;
        name:
            | "channel:new"
            | "channel:open"
            | "channel:close"
            | "channel:message"
            | "channel:error";
    }
    Index

    Properties

    channel: RTCDataChannel

    Data channel associated with the event.

    data?: any

    Data associated with the message event.

    error?: Error

    Error associated with the error event.

    id: string

    Unique identifier for the remote peer.

    label: string

    Label of the data channel.

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

    Name of the event.