websocket-client icon indicating copy to clipboard operation
websocket-client copied to clipboard

WebSocket client for Python

Results 71 websocket-client issues
Sort by recently updated
recently updated
newest added

hi, i have script like this ``` def on_message(ws, message): if str(message).split()[0] == '

run_forever() has a new kwarg, "reconnect". If "reconnect" is True (which is the default) and the connection ends (or can't be established), it waits for 5 seconds and tries again....

See https://github.com/websocket-client/websocket-client/issues/841 This PR allows to pass timeout for proxy in `run_forever`. Default timeout is quite long (60 sec) so this way user can set it's own.

https://github.com/websocket-client/websocket-client/blob/61171591b08ee031e02cc6cb129952259062f502/websocket/_http.py#L62 https://github.com/websocket-client/websocket-client/blob/61171591b08ee031e02cc6cb129952259062f502/websocket/_core.py#L244-L246 https://github.com/websocket-client/websocket-client/blob/61171591b08ee031e02cc6cb129952259062f502/websocket/_app.py#L327-L333 This means that without monkey patch it is resulting in default 60 sec as per `python-socks` I will try to create PR.

Hi, We're using websocket-client to send small messages in a fairly high throughput. We're currently experiencing an issue when the following happens (using run_forever()) 1. Send many messages in a...

Greetings! I apologize in advance if I am doing something foolish, because Python is not a language I use much, but I find myself needing to build a daemon that...

In a websocket application to retrieve discord entries, I use the WebSocketApp, In the on_open(wsapp) I set up an infinitive loop to send heartbeat messages and start a thread for...

How about adding a new method called `on_callback_error` to handle the errors that raise from any callbacks? ```python def on_callback_error(self, ws, callback, exc) -> None: logger.debug(f"Exception raise on {callback.__name__}", exc_info=exc)...

Hi. I'm trying to run the code ws.run_forever(dispatcher=rel) # Set dispatcher to automatic reconnection rel.signal(2, rel.abort) # Keyboard Interrupt rel.dispatch() The line rel.dispatch() returns an error - TypeError: read() takes...

When my WebSocket client try to reconnect, it is set to closing the original connection first. Howerver, the target WebSocket server is in a proxied environment behind nginx. It might...

bug