Interface SecuredConnection<Stream, Extension>

interface SecuredConnection<Stream, Extension> {
    conn: Stream;
    remoteExtensions?: Extension;
    remotePeer: PeerId;
    streamMuxer?: StreamMuxerFactory;
}

Type Parameters

  • Stream = any
  • Extension = unknown

Properties

conn: Stream
remoteExtensions?: Extension
remotePeer: PeerId
streamMuxer?: StreamMuxerFactory

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.