WebSocket-for-Python
WebSocket-for-Python copied to clipboard
Fix messages are one-behind when using secure sockets (wss)
This fix tries to query the sockets directly for pending data if poller.poll() returns no file descriptors.
In case of pending data, a special flag is set on the websocket, to ensure the whole buffer is processed in one go.
Fixes https://github.com/Lawouach/WebSocket-for-Python/issues/270