Hi,
I note Hypercorn server websocket consider will close code as 1006, albeit client side close with 1000 code sent:
- Start hypercorn server
- Start client and establish connection
- Hypercorn server is waiting for
.receive_text()
- Client close connection with 1000 closed code
- Hypercorn receives
WebSocketDisconnect exception with 1006 code
Here is a demonstration to reproduce it: https://github.com/wenleix/hypercorn-ws2