diff options
author | bubbleboy14 <mario.balibrera@gmail.com> | 2023-01-20 13:14:23 -0800 |
---|---|---|
committer | bubbleboy14 <mario.balibrera@gmail.com> | 2023-01-20 13:14:23 -0800 |
commit | be4110c08c5d10b52410c36c72d1deb9e4cbf32c (patch) | |
tree | d6dddc00338bc416ba72e7de629dd170270ddb8f /docs/source/examples.rst | |
parent | 7d83cc3e559526ca2d6774768baffc19ff14f8da (diff) | |
parent | 601a9022d6044bf6d414fdb1122916b65dc58ca7 (diff) | |
download | websocket-client-t858.tar.gz |
Merge branch 'master' into t858t858
Diffstat (limited to 'docs/source/examples.rst')
-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 |