newStream method

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

NewStream constructs a new Stream over this conn.

Implementation

@override
Future<P2PStream<dynamic>> newStream(Context context) {
  // A RelayedConn represents a single logical channel.
  // It does not support further multiplexing new streams over itself directly.
  // New streams to the same remote peer via a relay would be new RelayedConn instances.
  throw UnimplementedError(
      'newStream on RelayedConn is not supported. Create a new relayed connection via the transport.');
}