<!DOCTYPE html><htmlclass="default"lang="en"><head><metacharSet="utf-8"/><metahttp-equiv="x-ua-compatible"content="IE=edge"/><title>createRelayNode | 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/icons.js"id="tsd-icons-script"></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";document.body.style.display="none";setTimeout(()=>app?app.showPage():document.body.style.removeProperty("display"),500)</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="../assets/icons.svg#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="../assets/icons.svg#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_relay.html">@waku/relay</a></li><li><ahref="_waku_relay.createRelayNode.html">createRelayNode</a></li></ul><h1>Function createRelayNode</h1></div><sectionclass="tsd-panel"><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="createRelayNode"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">create<wbr/>Relay<wbr/>Node</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">options</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">Promise</span><spanclass="tsd-signature-symbol"><</span><ahref="../interfaces/_waku_interfaces.RelayNode.html"class="tsd-signature-type tsd-kind-interface">RelayNode</a><spanclass="tsd-signature-symbol">></span><ahref="#createRelayNode"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Create a Waku node that uses Waku Relay to send and receive messages,
enabling some privacy preserving properties.
*</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">options</span>: <ahref="../types/_waku_interfaces.ProtocolCreateOptions.html"class="tsd-signature-type tsd-kind-type-alias">ProtocolCreateOptions</a><spanclass="tsd-signature-symbol">&</span><spanclass="tsd-signature-type">Partial</span><spanclass="tsd-signature-symbol"><</span><ahref="../interfaces/_waku_sdk.WakuOptions.html"class="tsd-signature-type tsd-kind-interface">WakuOptions</a><spanclass="tsd-signature-symbol">></span><spanclass="tsd-signature-symbol">&</span><spanclass="tsd-signature-type">Partial</span><spanclass="tsd-signature-symbol"><</span><ahref="../types/_waku_relay.RelayCreateOptions.html"class="tsd-signature-type tsd-kind-type-alias">RelayCreateOptions</a><spanclass="tsd-signature-symbol">></span></span></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">Promise</span><spanclass="tsd-signature-symbol"><</span><ahref="../interfaces/_waku_interfaces.RelayNode.html"class="tsd-signature-type tsd-kind-interface">RelayNode</a><spanclass="tsd-signature-symbol">></span></h4><divclass="tsd-comment tsd-typography"><h4>Remarks</h4><p>This function creates a Relay Node using the Waku Relay protocol.
While it is technically possible to use this function in a browser environment,
it is not recommended due to potential performance issues and limited browser capabilities.
If you are developing a browser-based application, consider alternative approaches like creating a Light Node