-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ClientWebSocketResponse with a json method #862
Comments
Should msg.data be stripped? |
I don't understand the stripped idea? Maybe a better way is to deal with it like the |
I mean should And what to do with empty string data? |
After some use of it, it's hard to beat |
Fixed by #897 |
@asvetlov Great! Thanks mate. |
Thanks to @sseg |
Long story short
I would love to have a
json()
method next to thedata
property of aClientWebSocketResponse
.Expected behaviour
That I can do
msg.json()
instead of manuallyjson.loads(msg.data)
just like the HTTP response.Actual behaviour
No
json()
Steps to reproduce
Your environment
Python 3.5, Archlinux, GNU/Linux 4.5.1 x86_64
The text was updated successfully, but these errors were encountered: