<!DOCTYPE html><htmlclass="default"lang="en"><head><metacharSet="utf-8"/><metahttp-equiv="x-ua-compatible"content="IE=edge"/><title>streamContentTopic | Documentation</title><metaname="description"content="Documentation for Documentation"/><metaname="viewport"content="width=device-width, initial-scale=1"/><linkrel="stylesheet"href="../assets/style.css"/><linkrel="stylesheet"href="../assets/highlight.css"/><scriptdefersrc="../assets/main.js"></script><scriptasyncsrc="../assets/search.js"id="tsd-search-script"></script><scriptasyncsrc="../assets/navigation.js"id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme=localStorage.getItem("tsd-theme")||"os"</script><headerclass="tsd-page-toolbar"><divclass="tsd-toolbar-contents container"><divclass="table-cell"id="tsd-search"data-base=".."><divclass="field"><labelfor="tsd-search-field"class="tsd-widget tsd-toolbar-icon search no-caption"><svgwidth="16"height="16"viewBox="0 0 16 16"fill="none"><usehref="#icon-search"></use></svg></label><inputtype="text"id="tsd-search-field"aria-label="Search"/></div><divclass="field"><divid="tsd-toolbar-links"></div></div><ulclass="results"><liclass="state loading">Preparing search index...</li><liclass="state failure">The search index is not available</li></ul><ahref="../index.html"class="title">Documentation</a></div><divclass="table-cell"id="tsd-widgets"><ahref="#"class="tsd-widget tsd-toolbar-icon menu no-caption"data-toggle="menu"aria-label="Menu"><svgwidth="16"height="16"viewBox="0 0 16 16"fill="none"><usehref="#icon-menu"></use></svg></a></div></div></header><divclass="container container-main"><divclass="col-content"><divclass="tsd-page-title"><ulclass="tsd-breadcrumb"><li><ahref="../index.html">Documentation</a></li><li><ahref="../modules/_waku_sdk.html">@waku/sdk</a></li><li><ahref="_waku_sdk.streamContentTopic.html">streamContentTopic</a></li></ul><h1>Function streamContentTopic</h1></div><sectionclass="tsd-panel"><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="streamContentTopic"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">stream<wbr/>Content<wbr/>Topic</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">contentTopic</span>, <spanclass="tsd-kind-parameter">opts</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">Promise</span><spanclass="tsd-signature-symbol"><</span><spanclass="tsd-signature-symbol">[</span><spanclass="tsd-signature-type">ReadableStream</span><spanclass="tsd-signature-symbol"><</span><ahref="../classes/_waku_sdk.DecodedMessage.html"class="tsd-signature-type tsd-kind-class">DecodedMessage</a><spanclass="tsd-signature-symbol">></span><spanclass="tsd-signature-symbol">, </span><ahref="../interfaces/_waku_sdk.LightNode.html"class="tsd-signature-type tsd-kind-interface">LightNode</a><spanclass="tsd-signature-symbol">]</span><spanclass="tsd-signature-symbol">></span><ahref="#streamContentTopic"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Creates a subscription and streams all new messages for a content topic.
Will create a light node configured for the content topic with default settings if a node is not provided in <code>opts</code>.