openStream method

  1. @override
Future<StreamManagementScope> openStream(
  1. PeerId peerId,
  2. Direction dir
)
override

OpenStream creates a new stream scope, initially unnegotiated. An unnegotiated stream will be initially unattached to any protocol scope and constrained by the transient scope. The caller owns the returned scope and is responsible for calling Done in order to signify the end of th scope's span.

Implementation

@override
Future<StreamManagementScope> openStream(PeerId peerId, Direction dir) async {
  return NullScope();
}