diff options
Diffstat (limited to 'docs/source')
| -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) |
