mirror of
https://github.com/logos-messaging/logos-messaging-js.git
synced 2026-01-31 06:13:12 +00:00
73 lines
98 KiB
HTML
73 lines
98 KiB
HTML
|
|
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>MessageChannel | Documentation</title><meta name="description" content="Documentation for Documentation"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../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><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">Documentation</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../index.html">Documentation</a></li><li><a href="../modules/_waku_sds.html">@waku/sds</a></li><li><a href="_waku_sds.MessageChannel.html">MessageChannel</a></li></ul><h1>Class MessageChannel</h1></div><section class="tsd-panel tsd-hierarchy"><h4>Hierarchy</h4><ul class="tsd-hierarchy"><li><span class="tsd-signature-type">TypedEventEmitter</span><span class="tsd-signature-symbol"><</span><a href="../types/_waku_sds.MessageChannelEvents.html" class="tsd-signature-type tsd-kind-type-alias">MessageChannelEvents</a><span class="tsd-signature-symbol">></span><ul class="tsd-hierarchy"><li><span class="target">MessageChannel</span></li></ul></li></ul></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/waku-org/js-waku/blob/a0fc9e05d4ef103b58c8ef0574bdaaaa421bf4da/packages/sds/src/message_channel/message_channel.ts#L33">src/message_channel/message_channel.ts:33</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex="0"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg> Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Constructors</h3><div class="tsd-index-list"><a href="_waku_sds.MessageChannel.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a>
|
|||
|
|
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="_waku_sds.MessageChannel.html#_private" class="tsd-index-link tsd-is-private tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>#private</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#acknowledgementCount" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>acknowledgement<wbr/>Count</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#acknowledgements" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>acknowledgements</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#causalHistorySize" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>causal<wbr/>History<wbr/>Size</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#channelId" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>channel<wbr/>Id</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#filter" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>filter</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#handlers" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>handlers</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#incomingBuffer" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>incoming<wbr/>Buffer</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#lamportTimestamp" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>lamport<wbr/>Timestamp</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#localHistory" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>local<wbr/>History</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#outgoingBuffer" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>outgoing<wbr/>Buffer</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#receivedMessageTimeout" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>received<wbr/>Message<wbr/>Timeout</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#receivedMessageTimeoutEnabled" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>received<wbr/>Message<wbr/>Timeout<wbr/>Enabled</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#tasks" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>tasks</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#timeReceived" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>time<wbr/>Received</span></a>
|
|||
|
|
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="_waku_sds.MessageChannel.html#_receiveMessage" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>_receive<wbr/>Message</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#_sendEphemeralMessage" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>_send<wbr/>Ephemeral<wbr/>Message</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#_sendMessage" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>_send<wbr/>Message</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#addEventListener" class="tsd-index-link tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>add<wbr/>Event<wbr/>Listener</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#deliverMessage" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>deliver<wbr/>Message</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#dispatchEvent" class="tsd-index-link tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>dispatch<wbr/>Event</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#executeTask" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>execute<wbr/>Task</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#getAcknowledgementCount" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Acknowledgement<wbr/>Count</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#listenerCount" class="tsd-index-link tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>listener<wbr/>Count</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#processTasks" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>process<wbr/>Tasks</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#receiveMessage" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>receive<wbr/>Message</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#removeEventListener" class="tsd-index-link tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>remove<wbr/>Event<wbr/>Listener</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#reviewAckStatus" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>review<wbr/>Ack<wbr/>Status</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#safeDispatchEvent" class="tsd-index-link tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>safe<wbr/>Dispatch<wbr/>Event</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#safeSendEvent" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>safe<wbr/>Send<wbr/>Event</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#sendEphemeralMessage" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Ephemeral<wbr/>Message</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#sendMessage" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Message</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#sendSyncMessage" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Sync<wbr/>Message</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#sweepIncomingBuffer" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>sweep<wbr/>Incoming<wbr/>Buffer</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#sweepOutgoingBuffer" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>sweep<wbr/>Outgoing<wbr/>Buffer</span></a>
|
|||
|
|
<a href="_waku_sds.MessageChannel.html#getMessageId" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Message<wbr/>Id</span></a>
|
|||
|
|
</div></section></div></details></section></section><section class="tsd-panel-group tsd-member-group"><h2>Constructors</h2><section class="tsd-panel tsd-member"><a id="constructor" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="constructor.new_MessageChannel" class="tsd-anchor"></a><span class="tsd-kind-constructor-signature">new <wbr/>Message<wbr/>Channel</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">channelId</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_waku_sds.MessageChannel.html" class="tsd-signature-type tsd-kind-class">MessageChannel</a><a href="#constructor.new_MessageChannel" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">channelId</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">options</span>: <span class="tsd-signature-type">MessageChannelOptions</span><span class="tsd-signature-symbol"> = {}</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <a href="_waku_sds.MessageChannel.html" class="tsd-signature-type tsd-kind-class">MessageChannel</a></h4><aside class="tsd-sources"><p>Overrides TypedEventEmitter<MessageChannelEvents>.constructor</p><ul><li>Defined in <a href="https://github.com/waku-org/js-waku/blob/a0fc9e05d4ef103b58c8ef0574bdaaaa421bf4da/packages/sds/src/message_channel/message_channel.ts#L66">src/message_channel/message_channel.ts:66</a></li></ul></aside></li></ul></section></section><section class="tsd-panel-group tsd-member-group"><h2>Properties</h2><section class="tsd-panel tsd-member tsd-is-private tsd-is-inherited tsd-is-external"><a id="_private" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>#private</span><a href="#_private" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">#private</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div><aside class="tsd-sources"><p>Inherited from TypedEventEmitter.#private</p><ul><li>Defined in node_modules/@libp2p/interface/dist/src/event-target.d.ts:28</li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-private"><a id="acknowledgementCount" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>acknowledgement<wbr/>Count</span><a href="#acknowledgementCount" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">acknowledgement<wbr/>Count</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/waku-org/js-waku/blob/a0fc9e05d4ef103b58c8ef0574bdaaaa421bf4da/packages/sds/src/message_channel/message_channel.ts#L42">src/message_channel/message_channel.ts:42</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-private"><a id="acknowledgements" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>acknowledgements</span><a href="#acknowledgements" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use hre
|
|||
|
|
<p>This method should be called periodically by the library consumer to execute
|
|||
|
|
queued send/receive operations in the correct sequence.</p>
|
|||
|
|
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><div class="tsd-comment tsd-typography"><h4>Example</h4><pre><code class="language-typescript"><span class="hl-5">const</span><span class="hl-1"> </span><span class="hl-6">channel</span><span class="hl-1"> = </span><span class="hl-5">new</span><span class="hl-1"> </span><span class="hl-0">MessageChannel</span><span class="hl-1">(</span><span class="hl-2">"my-channel"</span><span class="hl-1">);</span><br/><br/><span class="hl-4">// Queue some operations</span><br/><span class="hl-8">await</span><span class="hl-1"> </span><span class="hl-3">channel</span><span class="hl-1">.</span><span class="hl-0">sendMessage</span><span class="hl-1">(</span><span class="hl-3">payload</span><span class="hl-1">, </span><span class="hl-3">callback</span><span class="hl-1">);</span><br/><span class="hl-3">channel</span><span class="hl-1">.</span><span class="hl-0">receiveMessage</span><span class="hl-1">(</span><span class="hl-3">incomingMessage</span><span class="hl-1">);</span><br/><br/><span class="hl-4">// Process all queued operations</span><br/><span class="hl-8">await</span><span class="hl-1"> </span><span class="hl-3">channel</span><span class="hl-1">.</span><span class="hl-0">processTasks</span><span class="hl-1">();</span>
|
|||
|
|
</code><button>Copy</button></pre>
|
|||
|
|
<h4>Throws</h4><p>Will emit a 'taskError' event if any task fails, but continues processing remaining tasks</p>
|
|||
|
|
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/waku-org/js-waku/blob/a0fc9e05d4ef103b58c8ef0574bdaaaa421bf4da/packages/sds/src/message_channel/message_channel.ts#L112">src/message_channel/message_channel.ts:112</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="receiveMessage" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>receive<wbr/>Message</span><a href="#receiveMessage" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="receiveMessage.receiveMessage-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">receive<wbr/>Message</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#receiveMessage.receiveMessage-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Queues a received message for processing.</p>
|
|||
|
|
<p>The message will be processed when processTasks() is called, ensuring
|
|||
|
|
proper dependency resolution and causal ordering.</p>
|
|||
|
|
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">message</span>: <span class="tsd-signature-type">SdsMessage</span></span><div class="tsd-comment tsd-typography"><p>The message to receive and process</p>
|
|||
|
|
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"><h4>Example</h4><pre><code class="language-typescript"><span class="hl-5">const</span><span class="hl-1"> </span><span class="hl-6">channel</span><span class="hl-1"> = </span><span class="hl-5">new</span><span class="hl-1"> </span><span class="hl-0">MessageChannel</span><span class="hl-1">(</span><span class="hl-2">"chat-room"</span><span class="hl-1">);</span><br/><br/><span class="hl-4">// Receive a message from the network</span><br/><span class="hl-3">channel</span><span class="hl-1">.</span><span class="hl-0">receiveMessage</span><span class="hl-1">(</span><span class="hl-3">incomingMessage</span><span class="hl-1">);</span><br/><br/><span class="hl-4">// Process the received message</span><br/><span class="hl-8">await</span><span class="hl-1"> </span><span class="hl-3">channel</span><span class="hl-1">.</span><span class="hl-0">processTasks</span><span class="hl-1">();</span>
|
|||
|
|
</code><button>Copy</button></pre>
|
|||
|
|
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/waku-org/js-waku/blob/a0fc9e05d4ef103b58c8ef0574bdaaaa421bf4da/packages/sds/src/message_channel/message_channel.ts#L208">src/message_channel/message_channel.ts:208</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited tsd-is-external"><a id="removeEventListener" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>remove<wbr/>Event<wbr/>Listener</span><a href="#removeEventListener" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited tsd-is-external"><li class="tsd-signature tsd-anchor-link"><a id="removeEventListener.removeEventListener-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">remove<wbr/>Event<wbr/>Listener</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="_waku_sds.MessageChannel.html#removeEventListener.removeEventListener-1.K-1">K</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">type</span>, <span class="tsd-kind-parameter">listener</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#removeEventListener.removeEventListener-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><section class="tsd-panel"><h4>Type Parameters</h4><ul class="tsd-type-parameter-list"><li><span><a id="removeEventListener.removeEventListener-1.K-1" class="tsd-anchor"></a><span class="tsd-kind-type-parameter">K</span><span class="tsd-signature-keyword"> extends </span><span class="tsd-signature-keyword">keyof </span><a href="../types/_waku_sds.MessageChannelEvents.html" class="tsd-signature-type tsd-kind-type-alias">MessageChannelEvents</a></span></li></ul></section><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">type</span>: <a class="tsd-signature-type tsd-kind-type-parameter" href="_waku_sds.MessageChannel.html#removeEventListener.removeEventListener-1.K-1">K</a></span></li><li><span><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">listener</span>: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">EventHandler</span><span class="tsd-signature-symbol"><</span><a href="../types/_waku_sds.MessageChannelEvents.html" class="tsd-signature-type tsd-kind-type-alias">MessageChannelEvents</a><span class="tsd-signature-symbol">[</span><a class="tsd-signature-type tsd-kind-type-parameter" href="_waku_sds.MessageChannel.html#removeEventListener.removeEventListener-1.K-1">K</a><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">></span></span></li><li><span><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">options</span>: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">EventListenerOptions</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from TypedEventEmitter.removeEventListener</p><ul><li>Defined in node_modules/@libp2p/interface/dist/src/event-target.d.ts:32</li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-private"><a id="reviewAckStatus" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>review<wbr/>Ack<wbr/>Status</span><a href="#reviewAckStatus" aria-label="P
|
|||
|
|
<p>Sends a message without a timestamp, causal history, or bloom filter.
|
|||
|
|
Ephemeral messages are not added to the outgoing buffer.
|
|||
|
|
Upon reception, ephemeral messages are delivered immediately without
|
|||
|
|
checking for causal dependencies or including in the local log.</p>
|
|||
|
|
<p>See <a href="https://rfc.vac.dev/vac/raw/sds/#ephemeral-messages">https://rfc.vac.dev/vac/raw/sds/#ephemeral-messages</a></p>
|
|||
|
|
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">payload</span>: <span class="tsd-signature-type">Uint8Array</span></span><div class="tsd-comment tsd-typography"><p>The payload to send.</p>
|
|||
|
|
</div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">callback</span>: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span></span><div class="tsd-comment tsd-typography"><p>A callback function that returns a boolean indicating whether the message was sent successfully.</p>
|
|||
|
|
</div><div class="tsd-comment tsd-typography"></div><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">message</span>: <span class="tsd-signature-type">SdsMessage</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span></h4></li></ul></li></ul></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/waku-org/js-waku/blob/a0fc9e05d4ef103b58c8ef0574bdaaaa421bf4da/packages/sds/src/message_channel/message_channel.ts#L176">src/message_channel/message_channel.ts:176</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="sendMessage" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>send<wbr/>Message</span><a href="#sendMessage" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="sendMessage.sendMessage-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">send<wbr/>Message</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">payload</span>, <span class="tsd-kind-parameter">callback</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#sendMessage.sendMessage-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Queues a message to be sent on this channel.</p>
|
|||
|
|
<p>The message will be processed sequentially when processTasks() is called.
|
|||
|
|
This ensures proper lamport timestamp ordering and causal history tracking.</p>
|
|||
|
|
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">payload</span>: <span class="tsd-signature-type">Uint8Array</span></span><div class="tsd-comment tsd-typography"><p>The message content as a byte array</p>
|
|||
|
|
</div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">callback</span>: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-symbol">{ </span><br/><span> </span><span class="tsd-kind-property">retrievalHint</span><span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Uint8Array</span><span class="tsd-signature-symbol">; </span><br/><span> </span><span class="tsd-kind-property">success</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span></span><div class="tsd-comment tsd-typography"><p>Optional callback function called after the message is processed</p>
|
|||
|
|
</div><div class="tsd-comment tsd-typography"></div><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-symbol">{ </span><br/><span> </span><span class="tsd-kind-property">retrievalHint</span><span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Uint8Array</span><span class="tsd-signature-symbol">; </span><br/><span> </span><span class="tsd-kind-property">success</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">></span></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">message</span>: <span class="tsd-signature-type">SdsMessage</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-symbol">{ </span><br/><span> </span><span class="tsd-kind-property">retrievalHint</span><span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Uint8Array</span><span class="tsd-signature-symbol">; </span><br/><span> </span><span class="tsd-kind-property">success</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">></span></h4></li></ul></li></ul></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4><p>Promise that resolves when the message is queued (not sent)</p>
|
|||
|
|
<div class="tsd-comment tsd-typography"><h4>Example</h4><pre><code class="language-typescript"><span class="hl-5">const</span><span class="hl-1"> </span><span class="hl-6">channel</span><span class="hl-1"> = </span><span class="hl-5">new</span><span class="hl-1"> </span><span class="hl-0">MessageChannel</span><span class="hl-1">(</span><span class="hl-2">"chat-room"</span><span class="hl-1">);</span><br/><span class="hl-5">const</span><span class="hl-1"> </span><span class="hl-6">message</span><span class="hl-1"> = </span><span class="hl-5">new</span><span class="hl-1"> </span><span class="hl-0">TextEncoder</span><span class="hl-1">().</span><span class="hl-0">encode</span><span class="hl-1">(</span><span class="hl-2">"Hello, world!"</span><span class="hl-1">);</span><br/><br/><span class="hl-8">await</span><span class="hl-1"> </span><span class="hl-3">channel</span><span class="hl-1">.</span><span class="hl-0">sendMessage</span><span class="hl-1">(</span><span class="hl-3">message</span><span class="hl-1">, </span><span class="hl-5">async</span><span class="hl-1"> (</span><span class="hl-3">processedMessage</span><span class="hl-1">) </span><span class="hl-5">=></span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-3">console</span><span class="hl-1">.</span><span class="hl-0">log</span><span class="hl-1">(</span><span class="hl-2">"Message processed:"</span><span class="hl-1">, </span><span class="hl-3">processedMessage</span><span class="hl-1">.</span><span class="hl-3">messageId</span><span class="hl-1">);</span><br/><span class="hl-1"> </span><span class="hl-8">return</span><span class="hl-1"> { </span><span class="hl-3">success:</span><span class="hl-1"> </span><span class="hl-5">true</span><span class="hl-1"> };</span><br/><span class="hl-1">});</span><br/><br/><span class="hl-4">// Actually send the message</span><br/><span class="hl-8">await</span><span class="hl-1"> </span><span class="hl-3">channel</span><span class="hl-1">.</span><span class="hl-0">processTasks</span><span class="hl-1">();</span>
|
|||
|
|
</code><button>Copy</button></pre>
|
|||
|
|
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/waku-org/js-waku/blob/a0fc9e05d4ef103b58c8ef0574bdaaaa421bf4da/packages/sds/src/message_channel/message_channel.ts#L147">src/message_channel/message_channel.ts:147</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="sendSyncMessage" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>send<wbr/>Sync<wbr/>Message</span><a href="#sendSyncMessage" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="sendSyncMessage.sendSyncMessage-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">send<wbr/>Sync<wbr/>Message</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callback</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span><a href="#sendSyncMessage.sendSyncMessage-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Send a sync message to the SDS channel.</p>
|
|||
|
|
<p>Increments the lamport timestamp, constructs a <code>Message</code> object
|
|||
|
|
with an empty load. Skips outgoing buffer, filter, and local log.</p>
|
|||
|
|
<p>See <a href="https://rfc.vac.dev/vac/raw/sds/#send-sync-message">https://rfc.vac.dev/vac/raw/sds/#send-sync-message</a></p>
|
|||
|
|
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">callback</span>: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span></span><div class="tsd-comment tsd-typography"><p>A callback function that returns a boolean indicating whether the message was sent successfully.</p>
|
|||
|
|
</div><div class="tsd-comment tsd-typography"></div><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">message</span>: <span class="tsd-signature-type">SdsMessage</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span></h4></li></ul></li></ul></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/waku-org/js-waku/blob/a0fc9e05d4ef103b58c8ef0574bdaaaa421bf4da/packages/sds/src/message_channel/message_channel.ts#L314">src/message_channel/message_channel.ts:314</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="sweepIncomingBuffer" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>sweep<wbr/>Incoming<wbr/>Buffer</span><a href="#sweepIncomingBuffer" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="sweepIncomingBuffer.sweepIncomingBuffer-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">sweep<wbr/>Incoming<wbr/>Buffer</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">HistoryEntry</span><span class="tsd-signature-symbol">[]</span><a href="#sweepIncomingBuffer.sweepIncomingBuffer-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Processes messages in the incoming buffer, delivering those with satisfied dependencies.</p>
|
|||
|
|
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">HistoryEntry</span><span class="tsd-signature-symbol">[]</span></h4><p>Array of history entries for messages still missing dependencies</p>
|
|||
|
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/waku-org/js-waku/blob/a0fc9e05d4ef103b58c8ef0574bdaaaa421bf4da/packages/sds/src/message_channel/message_channel.ts#L222">src/message_channel/message_channel.ts:222</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="sweepOutgoingBuffer" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>sweep<wbr/>Outgoing<wbr/>Buffer</span><a href="#sweepOutgoingBuffer" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="sweepOutgoingBuffer.sweepOutgoingBuffer-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">sweep<wbr/>Outgoing<wbr/>Buffer</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span><br/><span> </span><span class="tsd-kind-property">possiblyAcknowledged</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SdsMessage</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span><br/><span> </span><span class="tsd-kind-property">unacknowledged</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SdsMessage</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><a href="#sweepOutgoingBuffer.sweepOutgoingBuffer-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">{ </span><br/><span> </span><span class="tsd-kind-property">possiblyAcknowledged</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SdsMessage</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span><br/><span> </span><span class="tsd-kind-property">unacknowledged</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SdsMessage</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span></h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5><span class="tsd-kind-property">possibly<wbr/>Acknowledged</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SdsMessage</span><span class="tsd-signature-symbol">[]</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-kind-property">unacknowledged</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">SdsMessage</span><span class="tsd-signature-symbol">[]</span></h5></li></ul><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/waku-org/js-waku/blob/a0fc9e05d4ef103b58c8ef0574bdaaaa421bf4da/packages/sds/src/message_channel/message_channel.ts#L277">src/message_channel/message_channel.ts:277</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="getMessageId" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <span>get<wbr/>Message<wbr/>Id</span><a href="#getMessageId" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="getMessageId.getMessageId-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Message<wbr/>Id</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">payload</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><a href="#getMessageId.getMes
|