diff options
| author | engn33r <engn33r@users.noreply.github.com> | 2021-06-03 20:56:50 -0400 |
|---|---|---|
| committer | engn33r <engn33r@users.noreply.github.com> | 2021-06-03 20:56:50 -0400 |
| commit | eaf1b8cd4d915a4c8cb68f21a8a9dc81a9db7d15 (patch) | |
| tree | a729d40c507887b60fcf82c524261d4525beb0bf /docs | |
| parent | 494564f924d20f88ff6abd94806f382e31d7c0d0 (diff) | |
| download | websocket-client-eaf1b8cd4d915a4c8cb68f21a8a9dc81a9db7d15.tar.gz | |
Finish updating on_close() 3 args requirement
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/source/threading.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/source/threading.rst b/docs/source/threading.rst index 7125563..0846542 100644 --- a/docs/source/threading.rst +++ b/docs/source/threading.rst @@ -58,7 +58,7 @@ ws://echo.websocket.org, do not trigger the ``on_close()`` function. ws.close() print("Message received...") - def on_close(ws): + def on_close(ws, close_status_code, close_msg): print(">>>>>>CLOSED") wsapp = websocket.WebSocketApp("wss://api.bitfinex.com/ws/1", on_open=on_open, on_message=on_message, on_close=on_close) @@ -86,7 +86,7 @@ ws://echo.websocket.org, do not trigger the ``on_close()`` function. threading.Thread(target=run).start() - def on_close(ws): + def on_close(ws, close_status_code, close_msg): print(">>>>>>CLOSED") wsapp = websocket.WebSocketApp("wss://api.bitfinex.com/ws/1", on_open=on_open, on_message=on_message, on_close=on_close) |
