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 {
  throw StateError('Cannot create new streams on a raw, non-multiplexed connection.');
}