Replies: 1 comment
-
Shouldn't that be an As for the TypeError, that has discussions elsewhere in other issues and may be improved upon in a future release. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Now the
ClientWebSocketResponse.receive
method will return aWS_CLOSED_MESSAGE
when the session is closing, and then a TypeError will be raised in the receive_* method. This is a very unfriendly design, and we cannot capture the unexpected closing situation well.In addition, the closed check also has a lag, for example, the following code does not work properly.
It must be like this:
Beta Was this translation helpful? Give feedback.
All reactions