[CI Skip] 0.42.5
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/b2f0618/packages/rpc-provider/src/ws/index.ts#L75)*
|
||||
*Defined in [ws/index.ts:75](https://github.com/polkadot-js/api/blob/c1672e8/packages/rpc-provider/src/ws/index.ts#L75)*
|
||||
|
||||
**Parameters:**
|
||||
|
||||
@@ -55,7 +55,7 @@ ___
|
||||
|
||||
gethasSubscriptions(): `boolean`
|
||||
|
||||
*Defined in [ws/index.ts:101](https://github.com/polkadot-js/api/blob/b2f0618/packages/rpc-provider/src/ws/index.ts#L101)*
|
||||
*Defined in [ws/index.ts:101](https://github.com/polkadot-js/api/blob/c1672e8/packages/rpc-provider/src/ws/index.ts#L101)*
|
||||
|
||||
*__summary__*: `true` when this provider supports subscriptions
|
||||
|
||||
@@ -71,7 +71,7 @@ ___
|
||||
|
||||
▸ **clone**(): [WsProvider](_ws_index_.wsprovider.md)
|
||||
|
||||
*Defined in [ws/index.ts:108](https://github.com/polkadot-js/api/blob/b2f0618/packages/rpc-provider/src/ws/index.ts#L108)*
|
||||
*Defined in [ws/index.ts:108](https://github.com/polkadot-js/api/blob/c1672e8/packages/rpc-provider/src/ws/index.ts#L108)*
|
||||
|
||||
*__description__*: Returns a clone of the object
|
||||
|
||||
@@ -84,7 +84,7 @@ ___
|
||||
|
||||
▸ **connect**(): `void`
|
||||
|
||||
*Defined in [ws/index.ts:117](https://github.com/polkadot-js/api/blob/b2f0618/packages/rpc-provider/src/ws/index.ts#L117)*
|
||||
*Defined in [ws/index.ts:117](https://github.com/polkadot-js/api/blob/c1672e8/packages/rpc-provider/src/ws/index.ts#L117)*
|
||||
|
||||
*__summary__*: Manually connect
|
||||
|
||||
@@ -99,7 +99,7 @@ ___
|
||||
|
||||
▸ **disconnect**(): `void`
|
||||
|
||||
*Defined in [ws/index.ts:133](https://github.com/polkadot-js/api/blob/b2f0618/packages/rpc-provider/src/ws/index.ts#L133)*
|
||||
*Defined in [ws/index.ts:133](https://github.com/polkadot-js/api/blob/c1672e8/packages/rpc-provider/src/ws/index.ts#L133)*
|
||||
|
||||
*__description__*: Manually disconnect from the connection, clearing autoconnect logic
|
||||
|
||||
@@ -112,7 +112,7 @@ ___
|
||||
|
||||
▸ **isConnected**(): `boolean`
|
||||
|
||||
*Defined in [ws/index.ts:150](https://github.com/polkadot-js/api/blob/b2f0618/packages/rpc-provider/src/ws/index.ts#L150)*
|
||||
*Defined in [ws/index.ts:150](https://github.com/polkadot-js/api/blob/c1672e8/packages/rpc-provider/src/ws/index.ts#L150)*
|
||||
|
||||
*__summary__*: Whether the node is connected or not.
|
||||
|
||||
@@ -126,7 +126,7 @@ ___
|
||||
|
||||
▸ **on**(type: *[ProviderInterface$Emitted](../modules/_types_.md#providerinterface_emitted)*, sub: *[ProviderInterface$EmitCb](../modules/_types_.md#providerinterface_emitcb)*): `void`
|
||||
|
||||
*Defined in [ws/index.ts:159](https://github.com/polkadot-js/api/blob/b2f0618/packages/rpc-provider/src/ws/index.ts#L159)*
|
||||
*Defined in [ws/index.ts:159](https://github.com/polkadot-js/api/blob/c1672e8/packages/rpc-provider/src/ws/index.ts#L159)*
|
||||
|
||||
*__summary__*: Listens on events after having subscribed using the [subscribe](_ws_index_.wsprovider.md#subscribe) function.
|
||||
|
||||
@@ -146,7 +146,7 @@ ___
|
||||
|
||||
▸ **send**(method: *`string`*, params: *`Array`<`any`>*, subscription?: *`SubscriptionHandler`*): `Promise`<`any`>
|
||||
|
||||
*Defined in [ws/index.ts:169](https://github.com/polkadot-js/api/blob/b2f0618/packages/rpc-provider/src/ws/index.ts#L169)*
|
||||
*Defined in [ws/index.ts:169](https://github.com/polkadot-js/api/blob/c1672e8/packages/rpc-provider/src/ws/index.ts#L169)*
|
||||
|
||||
*__summary__*: Send JSON data using WebSockets to configured HTTP Endpoint or queue.
|
||||
|
||||
@@ -167,7 +167,7 @@ ___
|
||||
|
||||
▸ **subscribe**(type: *`string`*, method: *`string`*, params: *`Array`<`any`>*, callback: *[ProviderInterface$Callback](../modules/_types_.md#providerinterface_callback)*): `Promise`<`number`>
|
||||
|
||||
*Defined in [ws/index.ts:223](https://github.com/polkadot-js/api/blob/b2f0618/packages/rpc-provider/src/ws/index.ts#L223)*
|
||||
*Defined in [ws/index.ts:223](https://github.com/polkadot-js/api/blob/c1672e8/packages/rpc-provider/src/ws/index.ts#L223)*
|
||||
|
||||
*__name__*: subscribe
|
||||
|
||||
@@ -205,7 +205,7 @@ ___
|
||||
|
||||
▸ **unsubscribe**(type: *`string`*, method: *`string`*, id: *`number`*): `Promise`<`boolean`>
|
||||
|
||||
*Defined in [ws/index.ts:232](https://github.com/polkadot-js/api/blob/b2f0618/packages/rpc-provider/src/ws/index.ts#L232)*
|
||||
*Defined in [ws/index.ts:232](https://github.com/polkadot-js/api/blob/c1672e8/packages/rpc-provider/src/ws/index.ts#L232)*
|
||||
|
||||
*__summary__*: Allows unsubscribing to subscriptions made with [subscribe](_ws_index_.wsprovider.md#subscribe).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user