Open socketpair opened 2 years ago
First I want to thank the developers for this amazing library!
I have the same issue. The webscocket.receeive_*
functions should throw ConnectionResetError
when there are connection related errors instead of TypeError
. It will already throw this error if the auto ping feature is enabled and the pong
call fails.
aiohttp 3.8.1
await websocket.receive_json()
Will die withTypeError
onWSMsgType.CLOSED
.2784 is fixed, yes:
Yes, bug is fixed in iterator but NOT fixed for
websocket.receive_*
functions, likereceive_json()
I would raise RuntimeError or so if corresponding message "type" (like bytes, str, or json) can not be received.