newStream method

  1. @override
Future<P2PStream> newStream(
  1. Context context
)
override

NewStream constructs a new Stream over this conn.

Implementation

@override
Future<P2PStream> newStream(Context context) async {
  if (_closed) {
    throw Exception('Connection is closed');
  }
  throw UnimplementedError('Stream multiplexing not implemented');
}