mirror of
https://github.com/fluencelabs/js-libp2p-websockets
synced 2025-08-01 02:12:20 +00:00
chore: update documentation
This commit is contained in:
16
index.html
16
index.html
@@ -2,7 +2,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset='utf-8'>
|
||||
<title>libp2p-websockets 0.13.5 | Documentation</title>
|
||||
<title>libp2p-websockets 0.13.6 | Documentation</title>
|
||||
<meta name='description' content='JavaScript implementation of the WebSockets module that libp2p uses and that implements the interface-transport spec'>
|
||||
<meta name='viewport' content='width=device-width,initial-scale=1'>
|
||||
<link href='assets/bass.css' rel='stylesheet'>
|
||||
@@ -15,7 +15,7 @@
|
||||
<div id='split-left' class='overflow-auto fs0 height-viewport-100'>
|
||||
<div class='py1 px2'>
|
||||
<h3 class='mb0 no-anchor'>libp2p-websockets</h3>
|
||||
<div class='mb1'><code>0.13.5</code></div>
|
||||
<div class='mb1'><code>0.13.6</code></div>
|
||||
<input
|
||||
placeholder='Filter'
|
||||
id='filter-input'
|
||||
@@ -98,10 +98,10 @@
|
||||
<p>You can then <code>require()</code> libp2p-websockets as normal:</p>
|
||||
<pre class='hljs'><span class="hljs-keyword">const</span> libp2PWebsockets = <span class="hljs-built_in">require</span>(<span class="hljs-string">'libp2p-websockets'</span>)</pre>
|
||||
<h2>In the Browser</h2>
|
||||
<p>Libp2p-websockets should work in any ES2015 environment out of the box.</p>
|
||||
<p><code>libp2p-websockets</code> should work in any ECMAScript 2018 environment out of the box.</p>
|
||||
<p>Usage:</p>
|
||||
<pre class='hljs'><span class="hljs-tag"><<span class="hljs-name">script</span> <span class="hljs-attr">type</span>=<span class="hljs-string">"text/javascript"</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"index.js"</span>></span><span class="hljs-tag"></<span class="hljs-name">script</span>></span></pre>
|
||||
<p>The portable versions of libp2p-websockets, including <code>index.js</code> and <code>index.min.js</code>, are included in the <code>/dist</code> folder. Libp2p-websockets can also be found on <a href="https://unpkg.com">unpkg.com</a> under</p>
|
||||
<p>The portable versions of <code>libp2p-websockets</code>, including <code>index.js</code> and <code>index.min.js</code>, are included in the <code>/dist</code> folder. <code>libp2p-websockets</code> can also be found on <a href="https://unpkg.com">unpkg.com</a> under</p>
|
||||
<ul>
|
||||
<li><a href="https://unpkg.com/libp2p-websockets/dist/index.min.js">https://unpkg.com/libp2p-websockets/dist/index.min.js</a></li>
|
||||
<li><a href="https://unpkg.com/libp2p-websockets/dist/index.js">https://unpkg.com/libp2p-websockets/dist/index.js</a></li>
|
||||
@@ -122,7 +122,7 @@
|
||||
</h3>
|
||||
|
||||
|
||||
<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/libp2p/js-libp2p-websockets/blob/a33db558a6cad973f31bbbeb1c668e284c2477d2/src/index.js#L18-L131'>
|
||||
<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/libp2p/js-libp2p-websockets/blob/a37c2bd7f78b4ff671e20f7af5db4a494cb995f6/src/index.js#L18-L131'>
|
||||
<span>src/index.js</span>
|
||||
</a>
|
||||
|
||||
@@ -171,7 +171,7 @@
|
||||
<div class='clearfix'>
|
||||
|
||||
|
||||
<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/libp2p/js-libp2p-websockets/blob/a33db558a6cad973f31bbbeb1c668e284c2477d2/src/index.js#L38-L48'>
|
||||
<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/libp2p/js-libp2p-websockets/blob/a37c2bd7f78b4ff671e20f7af5db4a494cb995f6/src/index.js#L38-L48'>
|
||||
<span>src/index.js</span>
|
||||
</a>
|
||||
|
||||
@@ -281,7 +281,7 @@
|
||||
<div class='clearfix'>
|
||||
|
||||
|
||||
<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/libp2p/js-libp2p-websockets/blob/a33db558a6cad973f31bbbeb1c668e284c2477d2/src/index.js#L105-L112'>
|
||||
<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/libp2p/js-libp2p-websockets/blob/a37c2bd7f78b4ff671e20f7af5db4a494cb995f6/src/index.js#L105-L112'>
|
||||
<span>src/index.js</span>
|
||||
</a>
|
||||
|
||||
@@ -394,7 +394,7 @@ anytime a new incoming Connection has been successfully upgraded via
|
||||
<div class='clearfix'>
|
||||
|
||||
|
||||
<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/libp2p/js-libp2p-websockets/blob/a33db558a6cad973f31bbbeb1c668e284c2477d2/src/index.js#L119-L130'>
|
||||
<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/libp2p/js-libp2p-websockets/blob/a37c2bd7f78b4ff671e20f7af5db4a494cb995f6/src/index.js#L119-L130'>
|
||||
<span>src/index.js</span>
|
||||
</a>
|
||||
|
||||
|
Reference in New Issue
Block a user