summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorengn33r <engn33r@users.noreply.github.com>2023-01-26 00:00:00 +0000
committerengn33r <engn33r@users.noreply.github.com>2023-01-26 00:00:00 +0000
commit64b132a6d1fcfe5ca6cdb7ccfa026c1fb9d8de93 (patch)
treedd01a8e5e2bbbc665ad3f2e225abf1597d64b6df
parent0895e5ce47d6b1a52f86ba24292a310d67902786 (diff)
downloadwebsocket-client-64b132a6d1fcfe5ca6cdb7ccfa026c1fb9d8de93.tar.gz
link to logic of run_forever
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index d5c9bc5..f518732 100644
--- a/README.md
+++ b/README.md
@@ -80,9 +80,10 @@ connection is lost if it is provided with:
`run_forever` provides a variety of event-based connection controls
using callbacks like `on_message` and `on_error`.
-`run_forever` does not automatically reconnect if the server
+`run_forever` **does not automatically reconnect** if the server
closes the WebSocket gracefully (returning
[a standard websocket close code](https://www.rfc-editor.org/rfc/rfc6455.html#section-7.4.1)).
+[This is the logic](https://github.com/websocket-client/websocket-client/pull/838#issuecomment-1228454826) behind the decision.
Customizing behavior when the server closes
the WebSocket should be handled in the `on_close` callback.
This example uses [rel](https://github.com/bubbleboy14/registeredeventlistener)