trio-websocket
trio-websocket copied to clipboard
API for partial messages
Right now the WebSocketConnection will buffer partial messages until the entire message is received. There should be some option (probably in the constructor) to allow receiving partial messages instead.
There should probably also be a mechanism to cap the amount of data that trio-websocket will buffer internally, probably enabled by default with some reasonably limit and a configuration knob to adjust it.