support new param 'response_class' in websocket_client.ws_connect.#367
support new param 'response_class' in websocket_client.ws_connect.#367asvetlov merged 5 commits intoaio-libs:masterfrom
Conversation
aiohttp/websocket_client.py
Outdated
There was a problem hiding this comment.
Please use
if response_class is None:
response_class = ClientWebSocketResponse idiom
|
The patch is LGTM (except my inline note). |
|
Thanks asvetlov! I updated the patch to reflect your inline note. |
|
Couple more small changes for consistency in the docs. I'm done now with this feature. |
support new param 'response_class' in websocket_client.ws_connect.
|
Thanks! |
|
Thank you for reviewing @asvetlov Quick question: when you said earlier "I think we should add websockets (and maybe multiparts) to ClientSession also", were you referring to using the |
|
I think we need |
|
@davebshow if you would make PR for that -- please do. It will be at least nice starting point. |
Adds a 'response_class' parameter to
websocket_client.ws_connectthat allows user to implement a customClientWebSocketResponsestyle class and pass it to thews_connectcoroutine. Similar to 'response_class' param foraiohttp.client.request.