mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-02 22:03:07 +00:00
81 lines
23 KiB
HTML
81 lines
23 KiB
HTML
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>@waku/browser-tests | 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><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Documentation</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">@waku/browser-tests</a></li></ul><h1>Module @waku/browser-tests</h1></div><section class="tsd-panel tsd-typography"><h1 id="waku-browser-tests" class="tsd-anchor-link">Waku Browser Tests<a href="#waku-browser-tests" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h1><p>This package provides a containerized Waku light node simulation server for testing and development. The server runs a headless browser using Playwright and exposes a REST API similar to the nwaku REST API. A Dockerfile is provided to allow programmatic simulation and "deployment" of js-waku nodes in any Waku orchestration environment that uses Docker (e.g. <a href="https://github.com/vacp2p/10ksim">10ksim</a> ).</p>
|
|
<h2 id="quick-start" class="tsd-anchor-link">Quick Start<a href="#quick-start" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2><h3 id="build-and-run" class="tsd-anchor-link">Build and Run<a href="#build-and-run" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><pre><code class="bash"><span class="hl-3"># Build the application</span><br/><span class="hl-0">npm</span><span class="hl-1"> </span><span class="hl-2">run</span><span class="hl-1"> </span><span class="hl-2">build</span><br/><br/><span class="hl-3"># Start the server (port 8080)</span><br/><span class="hl-0">npm</span><span class="hl-1"> </span><span class="hl-2">run</span><span class="hl-1"> </span><span class="hl-2">start:server</span><br/><br/><span class="hl-3"># Build and run Docker container</span><br/><span class="hl-0">npm</span><span class="hl-1"> </span><span class="hl-2">run</span><span class="hl-1"> </span><span class="hl-2">docker:build</span><br/><span class="hl-0">docker</span><span class="hl-1"> </span><span class="hl-2">run</span><span class="hl-1"> </span><span class="hl-4">-p</span><span class="hl-1"> </span><span class="hl-2">8080:8080</span><span class="hl-1"> </span><span class="hl-2">waku-browser-tests:local</span>
|
|
</code><button type="button">Copy</button></pre>
|
|
|
|
<h2 id="configuration" class="tsd-anchor-link">Configuration<a href="#configuration" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2><p>Configure the Waku node using environment variables:</p>
|
|
<h3 id="network-configuration" class="tsd-anchor-link">Network Configuration<a href="#network-configuration" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul>
|
|
<li><code>WAKU_CLUSTER_ID</code>: Cluster ID (default: 1)</li>
|
|
<li><code>WAKU_SHARD</code>: Specific shard number - enables static sharding mode (optional)</li>
|
|
</ul>
|
|
<p><strong>Sharding Behavior:</strong></p>
|
|
<ul>
|
|
<li><strong>Auto-sharding</strong> (default): Uses <code>numShardsInCluster: 8</code> across cluster 1</li>
|
|
<li><strong>Static sharding</strong>: When <code>WAKU_SHARD</code> is set, uses only that specific shard</li>
|
|
</ul>
|
|
<h3 id="bootstrap-configuration" class="tsd-anchor-link">Bootstrap Configuration<a href="#bootstrap-configuration" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul>
|
|
<li><code>WAKU_ENR_BOOTSTRAP</code>: Enable ENR bootstrap mode with custom bootstrap peers (comma-separated)</li>
|
|
<li><code>WAKU_LIGHTPUSH_NODE</code>: Preferred lightpush node multiaddr (Docker only)</li>
|
|
</ul>
|
|
<h3 id="enr-bootstrap-mode" class="tsd-anchor-link">ENR Bootstrap Mode<a href="#enr-bootstrap-mode" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><p>When <code>WAKU_ENR_BOOTSTRAP</code> is set:</p>
|
|
<ul>
|
|
<li>Disables default bootstrap (<code>defaultBootstrap: false</code>)</li>
|
|
<li>Enables DNS discovery using production ENR trees</li>
|
|
<li>Enables peer exchange and peer cache</li>
|
|
<li>Uses the specified ENR for additional bootstrap peers</li>
|
|
</ul>
|
|
<pre><code class="bash"><span class="hl-3"># Example: ENR bootstrap mode</span><br/><span class="hl-5">WAKU_ENR_BOOTSTRAP</span><span class="hl-1">=</span><span class="hl-2">"enr:-QEnuEBEAyErHEfhiQxAVQoWowGTCuEF9fKZtXSd7H_PymHFhGJA3rGAYDVSHKCyJDGRLBGsloNbS8AZF33IVuefjOO6BIJpZIJ2NIJpcIQS39tkim11bHRpYWRkcnO4lgAvNihub2RlLTAxLmRvLWFtczMud2FrdXYyLnRlc3Quc3RhdHVzaW0ubmV0BgG73gMAODcxbm9kZS0wMS5hYy1jbi1ob25na29uZy1jLndha3V2Mi50ZXN0LnN0YXR1c2ltLm5ldAYBu94DACm9A62t7AQL4Ef5ZYZosRpQTzFVAB8jGjf1TER2wH-0zBOe1-MDBNLeA4lzZWNwMjU2azGhAzfsxbxyCkgCqq8WwYsVWH7YkpMLnU2Bw5xJSimxKav-g3VkcIIjKA"</span><span class="hl-1"> </span><span class="hl-0">npm</span><span class="hl-1"> </span><span class="hl-2">run</span><span class="hl-1"> </span><span class="hl-2">start:server</span>
|
|
</code><button type="button">Copy</button></pre>
|
|
|
|
<h2 id="api-endpoints" class="tsd-anchor-link">API Endpoints<a href="#api-endpoints" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2><p>The server exposes the following HTTP endpoints:</p>
|
|
<h3 id="node-management" class="tsd-anchor-link">Node Management<a href="#node-management" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul>
|
|
<li><code>GET /</code>: Health check - returns server status</li>
|
|
<li><code>GET /waku/v1/peer-info</code>: Get node peer information</li>
|
|
<li><code>POST /waku/v1/wait-for-peers</code>: Wait for peers with specific protocols</li>
|
|
</ul>
|
|
<h3 id="messaging" class="tsd-anchor-link">Messaging<a href="#messaging" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul>
|
|
<li><code>POST /lightpush/v3/message</code>: Send message via lightpush</li>
|
|
</ul>
|
|
<h3 id="static-files" class="tsd-anchor-link">Static Files<a href="#static-files" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul>
|
|
<li><code>GET /app/index.html</code>: Web application entry point</li>
|
|
<li><code>GET /app/*</code>: Static web application files</li>
|
|
</ul>
|
|
<h3 id="examples" class="tsd-anchor-link">Examples<a href="#examples" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><h4 id="send-a-message-auto-sharding" class="tsd-anchor-link">Send a Message (Auto-sharding)<a href="#send-a-message-auto-sharding" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="bash"><span class="hl-0">curl</span><span class="hl-1"> </span><span class="hl-4">-X</span><span class="hl-1"> </span><span class="hl-2">POST</span><span class="hl-1"> </span><span class="hl-2">http://localhost:8080/lightpush/v3/message</span><span class="hl-1"> </span><span class="hl-6">\</span><br/><span class="hl-1"> </span><span class="hl-4">-H</span><span class="hl-1"> </span><span class="hl-2">"Content-Type: application/json"</span><span class="hl-1"> </span><span class="hl-6">\</span><br/><span class="hl-1"> </span><span class="hl-4">-d</span><span class="hl-1"> </span><span class="hl-2">'{</span><br/><span class="hl-2"> "pubsubTopic": "",</span><br/><span class="hl-2"> "message": {</span><br/><span class="hl-2"> "contentTopic": "/test/1/example/proto",</span><br/><span class="hl-2"> "payload": "SGVsbG8gV2FrdQ==",</span><br/><span class="hl-2"> "version": 1</span><br/><span class="hl-2"> }</span><br/><span class="hl-2"> }'</span>
|
|
</code><button type="button">Copy</button></pre>
|
|
|
|
<h4 id="send-a-message-explicit-pubsub-topic" class="tsd-anchor-link">Send a Message (Explicit pubsub topic)<a href="#send-a-message-explicit-pubsub-topic" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="bash"><span class="hl-0">curl</span><span class="hl-1"> </span><span class="hl-4">-X</span><span class="hl-1"> </span><span class="hl-2">POST</span><span class="hl-1"> </span><span class="hl-2">http://localhost:8080/lightpush/v3/message</span><span class="hl-1"> </span><span class="hl-6">\</span><br/><span class="hl-1"> </span><span class="hl-4">-H</span><span class="hl-1"> </span><span class="hl-2">"Content-Type: application/json"</span><span class="hl-1"> </span><span class="hl-6">\</span><br/><span class="hl-1"> </span><span class="hl-4">-d</span><span class="hl-1"> </span><span class="hl-2">'{</span><br/><span class="hl-2"> "pubsubTopic": "/waku/2/rs/1/4",</span><br/><span class="hl-2"> "message": {</span><br/><span class="hl-2"> "contentTopic": "/test/1/example/proto",</span><br/><span class="hl-2"> "payload": "SGVsbG8gV2FrdQ==",</span><br/><span class="hl-2"> "version": 1</span><br/><span class="hl-2"> }</span><br/><span class="hl-2"> }'</span>
|
|
</code><button type="button">Copy</button></pre>
|
|
|
|
<h4 id="wait-for-peers" class="tsd-anchor-link">Wait for Peers<a href="#wait-for-peers" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="bash"><span class="hl-0">curl</span><span class="hl-1"> </span><span class="hl-4">-X</span><span class="hl-1"> </span><span class="hl-2">POST</span><span class="hl-1"> </span><span class="hl-2">http://localhost:8080/waku/v1/wait-for-peers</span><span class="hl-1"> </span><span class="hl-6">\</span><br/><span class="hl-1"> </span><span class="hl-4">-H</span><span class="hl-1"> </span><span class="hl-2">"Content-Type: application/json"</span><span class="hl-1"> </span><span class="hl-6">\</span><br/><span class="hl-1"> </span><span class="hl-4">-d</span><span class="hl-1"> </span><span class="hl-2">'{</span><br/><span class="hl-2"> "timeoutMs": 30000,</span><br/><span class="hl-2"> "protocols": ["lightpush", "filter"]</span><br/><span class="hl-2"> }'</span>
|
|
</code><button type="button">Copy</button></pre>
|
|
|
|
<h4 id="get-peer-info" class="tsd-anchor-link">Get Peer Info<a href="#get-peer-info" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="bash"><span class="hl-0">curl</span><span class="hl-1"> </span><span class="hl-4">-X</span><span class="hl-1"> </span><span class="hl-2">GET</span><span class="hl-1"> </span><span class="hl-2">http://localhost:8080/waku/v1/peer-info</span>
|
|
</code><button type="button">Copy</button></pre>
|
|
|
|
<h2 id="cli-usage" class="tsd-anchor-link">CLI Usage<a href="#cli-usage" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2><p>Run with CLI arguments:</p>
|
|
<pre><code class="bash"><span class="hl-3"># Custom cluster and shard</span><br/><span class="hl-0">node</span><span class="hl-1"> </span><span class="hl-2">dist/src/server.js</span><span class="hl-1"> </span><span class="hl-4">--cluster-id=2</span><span class="hl-1"> </span><span class="hl-4">--shard=0</span>
|
|
</code><button type="button">Copy</button></pre>
|
|
|
|
<h2 id="testing" class="tsd-anchor-link">Testing<a href="#testing" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2><p>The package includes several test suites:</p>
|
|
<pre><code class="bash"><span class="hl-3"># Basic server functionality tests (default)</span><br/><span class="hl-0">npm</span><span class="hl-1"> </span><span class="hl-2">test</span><br/><br/><span class="hl-3"># Docker testing workflow</span><br/><span class="hl-0">npm</span><span class="hl-1"> </span><span class="hl-2">run</span><span class="hl-1"> </span><span class="hl-2">docker:build</span><br/><span class="hl-0">npm</span><span class="hl-1"> </span><span class="hl-2">run</span><span class="hl-1"> </span><span class="hl-2">test:integration</span><br/><br/><span class="hl-3"># All tests</span><br/><span class="hl-0">npm</span><span class="hl-1"> </span><span class="hl-2">run</span><span class="hl-1"> </span><span class="hl-2">test:all</span><br/><br/><span class="hl-3"># Individual test suites:</span><br/><span class="hl-0">npm</span><span class="hl-1"> </span><span class="hl-2">run</span><span class="hl-1"> </span><span class="hl-2">test:server</span><span class="hl-1"> </span><span class="hl-3"># Server-only tests</span><br/><span class="hl-0">npm</span><span class="hl-1"> </span><span class="hl-2">run</span><span class="hl-1"> </span><span class="hl-2">test:e2e</span><span class="hl-1"> </span><span class="hl-3"># End-to-end tests </span>
|
|
</code><button type="button">Copy</button></pre>
|
|
|
|
<p><strong>Test Types:</strong></p>
|
|
<ul>
|
|
<li><code>server.spec.ts</code> - Tests basic server functionality and static file serving</li>
|
|
<li><code>integration.spec.ts</code> - Tests Docker container integration with external services</li>
|
|
<li><code>e2e.spec.ts</code> - Full end-to-end tests using nwaku nodes</li>
|
|
</ul>
|
|
<h2 id="docker-usage" class="tsd-anchor-link">Docker Usage<a href="#docker-usage" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2><p>The package includes Docker support for containerized testing:</p>
|
|
<pre><code class="bash"><span class="hl-3"># Build image</span><br/><span class="hl-0">docker</span><span class="hl-1"> </span><span class="hl-2">build</span><span class="hl-1"> </span><span class="hl-4">-t</span><span class="hl-1"> </span><span class="hl-2">waku-browser-tests:local</span><span class="hl-1"> </span><span class="hl-2">.</span><br/><br/><span class="hl-3"># Run with ENR bootstrap</span><br/><span class="hl-0">docker</span><span class="hl-1"> </span><span class="hl-2">run</span><span class="hl-1"> </span><span class="hl-4">-p</span><span class="hl-1"> </span><span class="hl-2">8080:8080</span><span class="hl-1"> </span><span class="hl-6">\</span><br/><span class="hl-1"> </span><span class="hl-4">-e</span><span class="hl-1"> </span><span class="hl-2">WAKU_ENR_BOOTSTRAP="enr:-QEnuE..."</span><span class="hl-1"> </span><span class="hl-6">\</span><br/><span class="hl-1"> </span><span class="hl-4">-e</span><span class="hl-1"> </span><span class="hl-2">WAKU_CLUSTER_ID="1"</span><span class="hl-1"> </span><span class="hl-6">\</span><br/><span class="hl-1"> </span><span class="hl-2">waku-browser-tests:local</span><br/><br/><span class="hl-3"># Run with specific configuration</span><br/><span class="hl-0">docker</span><span class="hl-1"> </span><span class="hl-2">run</span><span class="hl-1"> </span><span class="hl-4">-p</span><span class="hl-1"> </span><span class="hl-2">8080:8080</span><span class="hl-1"> </span><span class="hl-6">\</span><br/><span class="hl-1"> </span><span class="hl-4">-e</span><span class="hl-1"> </span><span class="hl-2">WAKU_CLUSTER_ID="2"</span><span class="hl-1"> </span><span class="hl-6">\</span><br/><span class="hl-1"> </span><span class="hl-4">-e</span><span class="hl-1"> </span><span class="hl-2">WAKU_SHARD="0"</span><span class="hl-1"> </span><span class="hl-6">\</span><br/><span class="hl-1"> </span><span class="hl-2">waku-browser-tests:local</span>
|
|
</code><button type="button">Copy</button></pre>
|
|
|
|
<h2 id="development" class="tsd-anchor-link">Development<a href="#development" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2><p>The server automatically:</p>
|
|
<ul>
|
|
<li>Creates a Waku light node on startup</li>
|
|
<li>Configures network settings from environment variables</li>
|
|
<li>Enables appropriate protocols (lightpush, filter)</li>
|
|
<li>Handles peer discovery and connection management</li>
|
|
</ul>
|
|
<p>All endpoints are CORS-enabled for cross-origin requests.</p>
|
|
</section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>On This Page</h3></summary><div class="tsd-accordion-details"><a href="#waku-browser-tests"><span>Waku <wbr/>Browser <wbr/>Tests</span></a><ul><li><a href="#quick-start"><span>Quick <wbr/>Start</span></a></li><li><ul><li><a href="#build-and-run"><span>Build and <wbr/>Run</span></a></li></ul></li><li><a href="#configuration"><span>Configuration</span></a></li><li><ul><li><a href="#network-configuration"><span>Network <wbr/>Configuration</span></a></li><li><a href="#bootstrap-configuration"><span>Bootstrap <wbr/>Configuration</span></a></li><li><a href="#enr-bootstrap-mode"><span>ENR <wbr/>Bootstrap <wbr/>Mode</span></a></li></ul></li><li><a href="#api-endpoints"><span>API <wbr/>Endpoints</span></a></li><li><ul><li><a href="#node-management"><span>Node <wbr/>Management</span></a></li><li><a href="#messaging"><span>Messaging</span></a></li><li><a href="#static-files"><span>Static <wbr/>Files</span></a></li><li><a href="#examples"><span>Examples</span></a></li><li><ul><li><a href="#send-a-message-auto-sharding"><span>Send a <wbr/>Message (<wbr/>Auto-<wbr/>sharding)</span></a></li><li><a href="#send-a-message-explicit-pubsub-topic"><span>Send a <wbr/>Message (<wbr/>Explicit pubsub topic)</span></a></li><li><a href="#wait-for-peers"><span>Wait for <wbr/>Peers</span></a></li><li><a href="#get-peer-info"><span>Get <wbr/>Peer <wbr/>Info</span></a></li></ul></li></ul></li><li><a href="#cli-usage"><span>CLI <wbr/>Usage</span></a></li><li><a href="#testing"><span>Testing</span></a></li><li><a href="#docker-usage"><span>Docker <wbr/>Usage</span></a></li><li><a href="#development"><span>Development</span></a></li></ul></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">Documentation</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|