python-trio / trio-websocket

WebSocket client and server implementation for Python Trio
MIT License
70 stars 26 forks source link

Configure message buffer (#82) #92

Closed mehaase closed 6 years ago

mehaase commented 6 years ago

Add arguments for configuring message queue size and maximum message size.

The closing code is needlessly complex and made the message size code very difficult to write, so I opened up #90 to refactor the way that closing is handled.

The only other thing that stands out to me is that the connection APIs have a lot of repeated arguments now. I know I could use **kwargs to make this more DRY, but then I think (?) that the docs would show kwargs instead of the actual argument names, and that doesn't seem very user-friendly. Thoughts?

coveralls commented 6 years ago

Pull Request Test Coverage Report for Build 103


Files with Coverage Reduction New Missed Lines %
trio_websocket/_impl.py 1 93.03%
<!-- Total: 1 -->
Totals Coverage Status
Change from base Build 97: 0.3%
Covered Lines: 375
Relevant Lines: 404

💛 - Coveralls
mehaase commented 6 years ago

Umm, not sure how this got closed. Obviously I intended to merge it!

mehaase commented 6 years ago

Merged directly into master.