[CI Skip] 0.30.31
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
|
||||
<link rel="stylesheet" href="../../gitbook/gitbook-plugin-sunlight-highlighter/sunlight.css">
|
||||
|
||||
|
||||
|
||||
@@ -373,12 +373,13 @@
|
||||
<p><em><strong>summary</strong></em>: The RxJS API is a wrapper around the API.</p>
|
||||
<p><em><strong>description</strong></em>: It allows wrapping API components with observables using RxJS.</p>
|
||||
<p><em><strong>example</strong></em>: </p>
|
||||
<pre><code>import RxApi from '@polkadot/api';
|
||||
import WsProvider from '@polkadot/api-provider/ws';
|
||||
<pre><code class="lang-javascript"><div class="sunlight-container sunlight-theme-gitbook"><div class="sunlight-code-container"><pre class="sunlight-highlight-javascript sunlight-highlighted"><span class="sunlight-javascript"><span class="sunlight-reservedWord">import</span> <span class="sunlight-ident">RxApi</span> <span class="sunlight-ident">from</span> <span class="sunlight-string">'@polkadot/api'</span><span class="sunlight-punctuation">;</span>
|
||||
<span class="sunlight-reservedWord">import</span> <span class="sunlight-ident">WsProvider</span> <span class="sunlight-ident">from</span> <span class="sunlight-string">'@polkadot/api-provider/ws'</span><span class="sunlight-punctuation">;</span>
|
||||
|
||||
const provider = new WsProvider('http://127.0.0.1:9944');
|
||||
const rxapi = new RxApi(provider);
|
||||
</code></pre><h1 id="hierarchy">Hierarchy</h1>
|
||||
<span class="sunlight-reservedWord">const</span> <span class="sunlight-ident">provider</span> <span class="sunlight-operator">=</span> <span class="sunlight-keyword">new</span> <span class="sunlight-ident">WsProvider</span><span class="sunlight-punctuation">(</span><span class="sunlight-string">'http://127.0.0.1:9944'</span><span class="sunlight-punctuation">)</span><span class="sunlight-punctuation">;</span>
|
||||
<span class="sunlight-reservedWord">const</span> <span class="sunlight-ident">rxapi</span> <span class="sunlight-operator">=</span> <span class="sunlight-keyword">new</span> <span class="sunlight-ident">RxApi</span><span class="sunlight-punctuation">(</span><span class="sunlight-ident">provider</span><span class="sunlight-punctuation">)</span><span class="sunlight-punctuation">;</span>
|
||||
</span></pre></div></div></code></pre>
|
||||
<h1 id="hierarchy">Hierarchy</h1>
|
||||
<p><strong>RxApi</strong></p>
|
||||
<h1 id="implements">Implements</h1>
|
||||
<ul>
|
||||
@@ -388,7 +389,7 @@ const rxapi = new RxApi(provider);
|
||||
<p><a id="constructor"></a></p>
|
||||
<h2 id="constructor">constructor</h2>
|
||||
<p>⊕ <strong>new RxApi</strong>(provider?: <em><code>ProviderInterface</code></em>): <a href="_index_.rxapi.html">RxApi</a></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/5b5caa1/packages/api-rx/src/index.ts#L44" target="_blank">index.ts:44</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/d4990f8/packages/api-rx/src/index.ts#L46" target="_blank">index.ts:46</a></em></p>
|
||||
<p><strong>Parameters:</strong></p>
|
||||
<table>
|
||||
<thead>
|
||||
@@ -414,28 +415,28 @@ const rxapi = new RxApi(provider);
|
||||
<p><a id="author"></a></p>
|
||||
<h2 id="author">author</h2>
|
||||
<p><strong>● author</strong>: <em><a href="../modules/_types_d_.md#rxapiinterface_section">RxApiInterface$Section</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/5b5caa1/packages/api-rx/src/index.ts#L41" target="_blank">index.ts:41</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/d4990f8/packages/api-rx/src/index.ts#L43" target="_blank">index.ts:43</a></em></p>
|
||||
<hr>
|
||||
<p><a id="chain"></a></p>
|
||||
<h2 id="chain">chain</h2>
|
||||
<p><strong>● chain</strong>: <em><a href="../modules/_types_d_.md#rxapiinterface_section">RxApiInterface$Section</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/5b5caa1/packages/api-rx/src/index.ts#L42" target="_blank">index.ts:42</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/d4990f8/packages/api-rx/src/index.ts#L44" target="_blank">index.ts:44</a></em></p>
|
||||
<hr>
|
||||
<p><a id="state"></a></p>
|
||||
<h2 id="state">state</h2>
|
||||
<p><strong>● state</strong>: <em><a href="../modules/_types_d_.md#rxapiinterface_section">RxApiInterface$Section</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/5b5caa1/packages/api-rx/src/index.ts#L43" target="_blank">index.ts:43</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/d4990f8/packages/api-rx/src/index.ts#L45" target="_blank">index.ts:45</a></em></p>
|
||||
<hr>
|
||||
<p><a id="system"></a></p>
|
||||
<h2 id="system">system</h2>
|
||||
<p><strong>● system</strong>: <em><a href="../modules/_types_d_.md#rxapiinterface_section">RxApiInterface$Section</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/5b5caa1/packages/api-rx/src/index.ts#L44" target="_blank">index.ts:44</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/d4990f8/packages/api-rx/src/index.ts#L46" target="_blank">index.ts:46</a></em></p>
|
||||
<hr>
|
||||
<h1 id="methods">Methods</h1>
|
||||
<p><a id="isconnected"></a></p>
|
||||
<h2 id="isconnected">isConnected</h2>
|
||||
<p>▸ <strong>isConnected</strong>(): <code>BehaviorSubject</code><<code>boolean</code>></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/5b5caa1/packages/api-rx/src/index.ts#L63" target="_blank">index.ts:63</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/polkadot-js/api/blob/d4990f8/packages/api-rx/src/index.ts#L65" target="_blank">index.ts:65</a></em></p>
|
||||
<p><strong>Returns:</strong> <code>BehaviorSubject</code><<code>boolean</code>></p>
|
||||
<hr>
|
||||
|
||||
@@ -481,7 +482,7 @@ const rxapi = new RxApi(provider);
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"ApiRx","level":"1.4.1","depth":2,"next":{"title":"Overview","level":"2.1","depth":1,"path":"examples/README.md","ref":"examples/README.md","articles":[]},"previous":{"title":"api-rx","level":"1.4","depth":1,"path":"api-rx/README.md","ref":"api-rx/README.md","articles":[{"title":"ApiRx","level":"1.4.1","depth":2,"path":"api-rx/classes/_index_.rxapi.md","ref":"api-rx/classes/_index_.rxapi.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["include-codeblock"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"api-rx/classes/_index_.rxapi.md","mtime":"2018-10-05T13:47:48.166Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-05T13:48:27.452Z"},"basePath":"../..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"ApiRx","level":"1.4.1","depth":2,"next":{"title":"Overview","level":"2.1","depth":1,"path":"examples/README.md","ref":"examples/README.md","articles":[]},"previous":{"title":"api-rx","level":"1.4","depth":1,"path":"api-rx/README.md","ref":"api-rx/README.md","articles":[{"title":"ApiRx","level":"1.4.1","depth":2,"path":"api-rx/classes/_index_.rxapi.md","ref":"api-rx/classes/_index_.rxapi.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["include-codeblock","-highlight","sunlight-highlighter"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"sunlight-highlighter":{"theme":"gitbook","lineNumbers":false},"include-codeblock":{"check":false,"edit":false,"lang":"","fixlang":false,"template":"default","theme":"chrome","unindent":false},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Polkadot API Book","gitbook":">=2.4.0"},"file":{"path":"api-rx/classes/_index_.rxapi.md","mtime":"2018-10-05T15:37:41.584Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-10-05T15:38:17.599Z"},"basePath":"../..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -7,8 +7,7 @@
|
||||
*__description__*: It allows wrapping API components with observables using RxJS.
|
||||
|
||||
*__example__*:
|
||||
|
||||
```
|
||||
```javascript
|
||||
import RxApi from '@polkadot/api';
|
||||
import WsProvider from '@polkadot/api-provider/ws';
|
||||
|
||||
@@ -32,7 +31,7 @@ const rxapi = new RxApi(provider);
|
||||
|
||||
⊕ **new RxApi**(provider?: *`ProviderInterface`*): [RxApi](_index_.rxapi.md)
|
||||
|
||||
*Defined in [index.ts:44](https://github.com/polkadot-js/api/blob/5b5caa1/packages/api-rx/src/index.ts#L44)*
|
||||
*Defined in [index.ts:46](https://github.com/polkadot-js/api/blob/d4990f8/packages/api-rx/src/index.ts#L46)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -52,7 +51,7 @@ ___
|
||||
|
||||
**● author**: *[RxApiInterface$Section](../modules/_types_d_.md#rxapiinterface_section)*
|
||||
|
||||
*Defined in [index.ts:41](https://github.com/polkadot-js/api/blob/5b5caa1/packages/api-rx/src/index.ts#L41)*
|
||||
*Defined in [index.ts:43](https://github.com/polkadot-js/api/blob/d4990f8/packages/api-rx/src/index.ts#L43)*
|
||||
|
||||
___
|
||||
<a id="chain"></a>
|
||||
@@ -61,7 +60,7 @@ ___
|
||||
|
||||
**● chain**: *[RxApiInterface$Section](../modules/_types_d_.md#rxapiinterface_section)*
|
||||
|
||||
*Defined in [index.ts:42](https://github.com/polkadot-js/api/blob/5b5caa1/packages/api-rx/src/index.ts#L42)*
|
||||
*Defined in [index.ts:44](https://github.com/polkadot-js/api/blob/d4990f8/packages/api-rx/src/index.ts#L44)*
|
||||
|
||||
___
|
||||
<a id="state"></a>
|
||||
@@ -70,7 +69,7 @@ ___
|
||||
|
||||
**● state**: *[RxApiInterface$Section](../modules/_types_d_.md#rxapiinterface_section)*
|
||||
|
||||
*Defined in [index.ts:43](https://github.com/polkadot-js/api/blob/5b5caa1/packages/api-rx/src/index.ts#L43)*
|
||||
*Defined in [index.ts:45](https://github.com/polkadot-js/api/blob/d4990f8/packages/api-rx/src/index.ts#L45)*
|
||||
|
||||
___
|
||||
<a id="system"></a>
|
||||
@@ -79,7 +78,7 @@ ___
|
||||
|
||||
**● system**: *[RxApiInterface$Section](../modules/_types_d_.md#rxapiinterface_section)*
|
||||
|
||||
*Defined in [index.ts:44](https://github.com/polkadot-js/api/blob/5b5caa1/packages/api-rx/src/index.ts#L44)*
|
||||
*Defined in [index.ts:46](https://github.com/polkadot-js/api/blob/d4990f8/packages/api-rx/src/index.ts#L46)*
|
||||
|
||||
___
|
||||
|
||||
@@ -91,7 +90,7 @@ ___
|
||||
|
||||
▸ **isConnected**(): `BehaviorSubject`<`boolean`>
|
||||
|
||||
*Defined in [index.ts:63](https://github.com/polkadot-js/api/blob/5b5caa1/packages/api-rx/src/index.ts#L63)*
|
||||
*Defined in [index.ts:65](https://github.com/polkadot-js/api/blob/d4990f8/packages/api-rx/src/index.ts#L65)*
|
||||
|
||||
**Returns:** `BehaviorSubject`<`boolean`>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user