diff options
| author | engn33r <engn33r@users.noreply.github.com> | 2022-10-26 01:08:31 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-26 01:08:31 +0000 |
| commit | 57cc86b07cb3bad34721106e79f95e145507ca4e (patch) | |
| tree | 5c6f7708c2c62e2c2a4fe54dc53146318cbfe8c7 /docs/source | |
| parent | b33897cbb03f320fd5df7ec28ef92daadf1ce366 (diff) | |
| download | websocket-client-57cc86b07cb3bad34721106e79f95e145507ca4e.tar.gz | |
Update docs to fix #863 (#872)
Diffstat (limited to 'docs/source')
| -rw-r--r-- | docs/source/examples.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/source/examples.rst b/docs/source/examples.rst index d3d5b99..9b3a905 100644 --- a/docs/source/examples.rst +++ b/docs/source/examples.rst @@ -700,7 +700,7 @@ You can use an asynchronous dispatcher such as `rel <https://pypi.org/project/re >>> addr = "wss://api.gemini.com/v1/marketdata/%s" >>> for symbol in ["BTCUSD", "ETHUSD", "ETHBTC"]: ... ws = websocket.WebSocketApp(addr % (symbol,), on_message=lambda w, m : print(m)) - ... ws.run_forever(dispatcher=rel) # doctest: +SKIP + ... ws.run_forever(dispatcher=rel, reconnect=3) # doctest: +SKIP >>> rel.signal(2, rel.abort) # Keyboard Interrupt # doctest: +SKIP >>> rel.dispatch() # doctest: +SKIP @@ -739,7 +739,7 @@ The examples are found in the README and are copied here for sphinx doctests to ... on_error=on_error, ... on_close=on_close) - >>> ws.run_forever(dispatcher=rel) # Set dispatcher to automatic reconnection # doctest: +SKIP + >>> ws.run_forever(dispatcher=rel, reconnect=5) # Set dispatcher to automatic reconnection, 5 second reconnect delay if connection closed unexpectedly # doctest: +SKIP >>> rel.signal(2, rel.abort) # Keyboard Interrupt <Signal Object | Callback:"abort"> >>> rel.dispatch() # doctest: +SKIP |
