libp2p
    Preparing search index...

    Interface SecuredConnection<Extension>

    interface SecuredConnection<Extension = unknown> {
        connection: MessageStream;
        remoteExtensions?: Extension;
        remotePeer: PeerId;
        streamMuxer?: StreamMuxerFactory<StreamMuxer<Stream>>;
    }

    Type Parameters

    • Extension = unknown
    Index

    Properties

    connection: MessageStream

    The decrypted data stream

    remoteExtensions?: Extension

    Any extension data transferred as part of the encryption handshake

    remotePeer: PeerId

    The identifier of the remote peer

    Some encryption protocols allow negotiating application protocols as part of the initial handshake. Where we are able to negotiated a stream muxer for the connection it will be returned here.