Closed xiaosong-ai closed 12 months ago
the added code should be:
if not self.input_buffer:
return self.input_buffer.pop(0)
Yes, I think this is a reasonable change. I'll look into it.
Thanks @miguelgrinberg. We can test both #29 and #30 at the same time.
Hey @miguelgrinberg we've been using 6c87abe22215c45b3dc0dadc168c3dd061eb2aa4
successfully for the past few days
https://github.com/miguelgrinberg/simple-websocket/blob/6f92764754550fc85b25e42182050c1e6636a41d/src/simple_websocket/ws.py#L114
Can we release input_buffer contents to receiver before raise ConnectionClosed? The code should looks like this: