PeerMessage: {
    peerMetadata: PeerMetadata;
    selectedProtocolVersion: ProtocolVersion;
    senderId: PeerId;
    targetId: PeerId;
    type: "peer";
}

Sent by the server in response to a "join" message to advertise the servers PeerID

Type declaration

  • peerMetadata: PeerMetadata

    Metadata presented by the peer

  • selectedProtocolVersion: ProtocolVersion

    The protocol version the server selected for this connection

  • senderId: PeerId

    The PeerID of the server

  • targetId: PeerId

    The PeerID of the client

  • type: "peer"