peerix - v0.1.0
    Preparing search index...

    Interface PeerConnectionEvent

    Event emitted on peer connection state changes.

    interface PeerConnectionEvent {
        id: string;
        name:
            | "connection:new"
            | "connection:connecting"
            | "connection:connected"
            | "connection:disconnected"
            | "connection:failed"
            | "connection:closed";
        remote: RemotePeer;
        state: PeerConnectionState;
    }
    Index

    Properties

    Properties

    id: string

    Local peer identifier.

    name:
        | "connection:new"
        | "connection:connecting"
        | "connection:connected"
        | "connection:disconnected"
        | "connection:failed"
        | "connection:closed"

    Name of the event.

    remote: RemotePeer

    Remote peer object containing connection details.

    New connection state.