newMSSelect function

LazyConn newMSSelect(
  1. P2PStream stream,
  2. ProtocolID proto
)

NewMSSelect returns a new Multistream which is able to perform protocol selection with a MultistreamMuxer.

Implementation

LazyConn newMSSelect(P2PStream<dynamic> stream, ProtocolID proto) {
  return _LazyClientConn(
    protos: [protocolID, proto],
    stream: stream,
  );
}