streams property

  1. @override
Future<List<P2PStream>> get streams
override

GetStreams returns all open streams over this conn.

Implementation

@override
Future<List<P2PStream>> get streams async {
  if (_muxedConn is p2p_mux.Multiplexer) {
    return (_muxedConn as p2p_mux.Multiplexer).streams;
  } else {
    print('Warning: _muxedConn in UpgradedConnectionImpl is not a p2p_mux.Multiplexer. Cannot get streams directly.');
    return [];
  }
}