peerix - v0.8.0
    Preparing search index...

    Interface PeerInfo<M>

    Peer identifier and the metadata it joined with.

    Metadata of remote peers comes from the network and is not validated, so check it in the room's verify callback before relying on its type.

    interface PeerInfo<M extends object = Metadata> {
        id: string;
        metadata?: M;
    }

    Type Parameters

    Index
    id: string

    Peer identifier.

    metadata?: M

    Metadata the peer joined with.