[CI Skip] 0.32.13
This commit is contained in:
@@ -34,7 +34,7 @@ const api = new Api(provider);
|
||||
|
||||
⊕ **new WsProvider**(endpoint?: *`string`*, autoConnect?: *`boolean`*): [WsProvider](_ws_index_.wsprovider.md)
|
||||
|
||||
*Defined in [ws/index.ts:75](https://github.com/polkadot-js/api/blob/93d83b1/packages/rpc-provider/src/ws/index.ts#L75)*
|
||||
*Defined in [ws/index.ts:75](https://github.com/polkadot-js/api/blob/62d4e5f/packages/rpc-provider/src/ws/index.ts#L75)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -55,7 +55,7 @@ ___
|
||||
|
||||
▸ **connect**(): `void`
|
||||
|
||||
*Defined in [ws/index.ts:103](https://github.com/polkadot-js/api/blob/93d83b1/packages/rpc-provider/src/ws/index.ts#L103)*
|
||||
*Defined in [ws/index.ts:103](https://github.com/polkadot-js/api/blob/62d4e5f/packages/rpc-provider/src/ws/index.ts#L103)*
|
||||
|
||||
*__summary__*: Manually connect
|
||||
|
||||
@@ -70,7 +70,7 @@ ___
|
||||
|
||||
▸ **isConnected**(): `boolean`
|
||||
|
||||
*Defined in [ws/index.ts:120](https://github.com/polkadot-js/api/blob/93d83b1/packages/rpc-provider/src/ws/index.ts#L120)*
|
||||
*Defined in [ws/index.ts:120](https://github.com/polkadot-js/api/blob/62d4e5f/packages/rpc-provider/src/ws/index.ts#L120)*
|
||||
|
||||
*__summary__*: Whether the node is connected or not.
|
||||
|
||||
@@ -84,7 +84,7 @@ ___
|
||||
|
||||
▸ **on**(type: *[ProviderInterface$Emitted](../modules/_types_.md#providerinterface_emitted)*, sub: *[ProviderInterface$EmitCb](../modules/_types_.md#providerinterface_emitcb)*): `void`
|
||||
|
||||
*Defined in [ws/index.ts:129](https://github.com/polkadot-js/api/blob/93d83b1/packages/rpc-provider/src/ws/index.ts#L129)*
|
||||
*Defined in [ws/index.ts:129](https://github.com/polkadot-js/api/blob/62d4e5f/packages/rpc-provider/src/ws/index.ts#L129)*
|
||||
|
||||
*__summary__*: Listens on events after having subscribed using the [subscribe](_ws_index_.wsprovider.md#subscribe) function.
|
||||
|
||||
@@ -104,7 +104,7 @@ ___
|
||||
|
||||
▸ **send**(method: *`string`*, params: *`Array`<`any`>*, subscription?: *`SubscriptionHandler`*): `Promise`<`any`>
|
||||
|
||||
*Defined in [ws/index.ts:139](https://github.com/polkadot-js/api/blob/93d83b1/packages/rpc-provider/src/ws/index.ts#L139)*
|
||||
*Defined in [ws/index.ts:139](https://github.com/polkadot-js/api/blob/62d4e5f/packages/rpc-provider/src/ws/index.ts#L139)*
|
||||
|
||||
*__summary__*: Send JSON data using WebSockets to configured HTTP Endpoint or queue.
|
||||
|
||||
@@ -125,7 +125,7 @@ ___
|
||||
|
||||
▸ **subscribe**(type: *`string`*, method: *`string`*, params: *`Array`<`any`>*, callback: *[ProviderInterface$Callback](../modules/_types_.md#providerinterface_callback)*): `Promise`<`number`>
|
||||
|
||||
*Defined in [ws/index.ts:195](https://github.com/polkadot-js/api/blob/93d83b1/packages/rpc-provider/src/ws/index.ts#L195)*
|
||||
*Defined in [ws/index.ts:195](https://github.com/polkadot-js/api/blob/62d4e5f/packages/rpc-provider/src/ws/index.ts#L195)*
|
||||
|
||||
*__name__*: subscribe
|
||||
|
||||
@@ -163,7 +163,7 @@ ___
|
||||
|
||||
▸ **unsubscribe**(type: *`string`*, method: *`string`*, id: *`number`*): `Promise`<`boolean`>
|
||||
|
||||
*Defined in [ws/index.ts:204](https://github.com/polkadot-js/api/blob/93d83b1/packages/rpc-provider/src/ws/index.ts#L204)*
|
||||
*Defined in [ws/index.ts:204](https://github.com/polkadot-js/api/blob/62d4e5f/packages/rpc-provider/src/ws/index.ts#L204)*
|
||||
|
||||
*__summary__*: Allows unsubscribing to subscriptions made with [subscribe](_ws_index_.wsprovider.md#subscribe).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user