mirror of
https://github.com/fluencelabs/js-libp2p-tcp
synced 2025-04-25 17:42:22 +00:00
chore: update documentation
This commit is contained in:
parent
d4c7925c08
commit
e2287cc7a3
16
index.html
16
index.html
@ -2,7 +2,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset='utf-8'>
|
||||
<title>libp2p-tcp 0.14.3 | Documentation</title>
|
||||
<title>libp2p-tcp 0.14.4 | Documentation</title>
|
||||
<meta name='description' content='Node.js implementation of the TCP module that libp2p uses, which implements the interface-connection and interface-transport interfaces'>
|
||||
<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-tcp</h3>
|
||||
<div class='mb1'><code>0.14.3</code></div>
|
||||
<div class='mb1'><code>0.14.4</code></div>
|
||||
<input
|
||||
placeholder='Filter'
|
||||
id='filter-input'
|
||||
@ -98,10 +98,10 @@
|
||||
<p>You can then <code>require()</code> libp2p-tcp as normal:</p>
|
||||
<pre class='hljs'><span class="hljs-keyword">const</span> libp2PTcp = <span class="hljs-built_in">require</span>(<span class="hljs-string">'libp2p-tcp'</span>)</pre>
|
||||
<h2>In the Browser</h2>
|
||||
<p>Libp2p-tcp should work in any ES2015 environment out of the box.</p>
|
||||
<p><code>libp2p-tcp</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-tcp, including <code>index.js</code> and <code>index.min.js</code>, are included in the <code>/dist</code> folder. Libp2p-tcp can also be found on <a href="https://unpkg.com">unpkg.com</a> under</p>
|
||||
<p>The portable versions of <code>libp2p-tcp</code>, including <code>index.js</code> and <code>index.min.js</code>, are included in the <code>/dist</code> folder. <code>libp2p-tcp</code> can also be found on <a href="https://unpkg.com">unpkg.com</a> under</p>
|
||||
<ul>
|
||||
<li><a href="https://unpkg.com/libp2p-tcp/dist/index.min.js">https://unpkg.com/libp2p-tcp/dist/index.min.js</a></li>
|
||||
<li><a href="https://unpkg.com/libp2p-tcp/dist/index.js">https://unpkg.com/libp2p-tcp/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-tcp/blob/0c2d84e395056f03a587fc9c29dec458e0fa75f0/src/index.js#L18-L138'>
|
||||
<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/libp2p/js-libp2p-tcp/blob/2bc2b36050d1f1f5cb42c7d28bf9991126756bb8/src/index.js#L17-L139'>
|
||||
<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-tcp/blob/0c2d84e395056f03a587fc9c29dec458e0fa75f0/src/index.js#L36-L44'>
|
||||
<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/libp2p/js-libp2p-tcp/blob/2bc2b36050d1f1f5cb42c7d28bf9991126756bb8/src/index.js#L37-L45'>
|
||||
<span>src/index.js</span>
|
||||
</a>
|
||||
|
||||
@ -280,7 +280,7 @@
|
||||
<div class='clearfix'>
|
||||
|
||||
|
||||
<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/libp2p/js-libp2p-tcp/blob/0c2d84e395056f03a587fc9c29dec458e0fa75f0/src/index.js#L113-L120'>
|
||||
<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/libp2p/js-libp2p-tcp/blob/2bc2b36050d1f1f5cb42c7d28bf9991126756bb8/src/index.js#L114-L121'>
|
||||
<span>src/index.js</span>
|
||||
</a>
|
||||
|
||||
@ -367,7 +367,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-tcp/blob/0c2d84e395056f03a587fc9c29dec458e0fa75f0/src/index.js#L127-L137'>
|
||||
<a class='fr fill-darken0 round round pad1x quiet h5' href='https://github.com/libp2p/js-libp2p-tcp/blob/2bc2b36050d1f1f5cb42c7d28bf9991126756bb8/src/index.js#L128-L138'>
|
||||
<span>src/index.js</span>
|
||||
</a>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user