 
<section class="summary source-code" id="source">
  <h2><span>Implementation</span></h2>
  <pre class="language-dart"><code class="language-dart">Future&lt;void&gt; subscribeToStreams(List&lt;PublisherStream&gt; streams, {RTCSessionDescription? offer}) async {
  if (streams.length &gt; 0) {
    var payload = {&#39;request&#39;: &quot;subscribe&quot;, &#39;streams&#39;: streams.map((e) =&gt; e.toMap()..removeWhere((key, value) =&gt; value == null)).toList()};
    await this.send(data: payload, jsep: offer)