Added --ws-refresh-delay option. (#493)

MadelineMurray 6 years ago committed by GitHub
parent 41194a22b3
commit f672433fce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      docs/Reference/Pantheon-CLI-Syntax.md
  2. 13
      docs/Using-Pantheon/RPC-PubSub.md

@ -504,6 +504,20 @@ The default is 127.0.0.1:8546.
!!!note !!!note
This option is not used when running Pantheon from the [Docker image](../Getting-Started/Run-Docker-Image.md#exposing-ports). This option is not used when running Pantheon from the [Docker image](../Getting-Started/Run-Docker-Image.md#exposing-ports).
### ws-refresh-delay
```bash tab="Syntax"
--ws-refresh-delay=<refresh delay>
```
```bash tab="Example"
--ws-refresh-delay="10000"
```
Refresh delay for Websocket synchronizing subscription in milliseconds.
The default is 5000.
### help ### help
```bash tab="Syntax" ```bash tab="Syntax"

@ -58,7 +58,7 @@ Use `eth_subscribe` to create subscriptions for the following event types:
* [New headers](#new-headers) * [New headers](#new-headers)
* [Logs](#logs) * [Logs](#logs)
* [Pending transactions](#pending-transactions) * [Pending transactions](#pending-transactions)
* [Sychronizng](#synchronizing) * [Synchronizng](#synchronizing)
### New Headers ### New Headers
@ -147,7 +147,7 @@ are included in the notifications. Otherwise, the transaction hashes are include
} }
``` ```
#### Logs ### Logs
Use the `logs` parameter with `eth_subscribe` to be notified of logs included in new blocks. You can Use the `logs` parameter with `eth_subscribe` to be notified of logs included in new blocks. You can
specify a [filter object](../Reference/JSON-RPC-API-Objects.md#filter-options-object) to receive notifications specify a [filter object](../Reference/JSON-RPC-API-Objects.md#filter-options-object) to receive notifications
@ -204,7 +204,7 @@ The logs subscription returns [Log objects](../Reference/JSON-RPC-API-Objects.md
} }
``` ```
#### Pending Transactions ### Pending Transactions
Use the `newPendingTransactions` parameter with `eth_subscribe` to be notified of pending transactions Use the `newPendingTransactions` parameter with `eth_subscribe` to be notified of pending transactions
added to the transaction pool for the node. added to the transaction pool for the node.
@ -239,11 +239,14 @@ This means the subscription can publish notifications for the same pending trans
} }
``` ```
#### Synchronizing ### Synchronizing
Use the `syncing` parameter with `eth_subscribe` to be notified about synchronization progress. Use the `syncing` parameter with `eth_subscribe` to be notified about synchronization progress.
The sychronizing subscription returns an object indicating the synchronization progress. The synchronizing subscription returns an object indicating the synchronization progress.
Use the [`--ws-refresh-delay` option](../Reference/Pantheon-CLI-Syntax.md#ws-refresh-delay) to configure how
often the synchronizing subscription returns an object. The default is 5000 milliseconds.
!!!example !!!example
To subscribe to synchronizing notifications: To subscribe to synchronizing notifications:

Loading…
Cancel
Save