You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can we release input_buffer contents to receiver before raise ConnectionClosed? The code should looks like this:
def receive(self, timeout=None):
"""Receive data over the WebSocket connection.
:param timeout: Amount of time to wait for the data, in seconds. Set
to ``None`` (the default) to wait indefinitely. Set
to 0 to read without blocking.
The data received is returned, as ``bytes`` or ``str``, depending on
the type of the incoming message.
"""
while self.connected and not self.input_buffer:
if not self.event.wait(timeout=timeout):
return None
self.event.clear()
if not self.connected: # pragma: no cover
simple-websocket/src/simple_websocket/ws.py
Line 114 in 6f92764
Can we release input_buffer contents to receiver before raise ConnectionClosed? The code should looks like this:
The text was updated successfully, but these errors were encountered: