python-trio / trio-websocket

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

fix reason not being set after local close #159

Closed belm0 closed 1 year ago

belm0 commented 3 years ago

During a local-initiated close handshake, the following incorrect behavior was observed:

Upon local-initiated close, closed will now have the reason, and send_message() will raise ConnectionClosed.

Fixes #158.

coveralls commented 3 years ago

Pull Request Test Coverage Report for Build 183


Totals Coverage Status
Change from base Build 169: 0.008%
Covered Lines: 498
Relevant Lines: 520

💛 - Coveralls