Closed grubberr closed 4 years ago
as I understand the problem, you build such scope
{'headers': [(b'host', b'localhost')],
'path': '/ws?token=token',
'query_string': b'',
'root_path': '',
'scheme': 'ws',
'subprotocols': [],
'type': 'websocket'}
but it has to be something like
{'headers': [(b'host', b'localhost')],
'path': '/ws',
'query_string': b'token=token',
'root_path': '',
'scheme': 'ws',
'subprotocols': [],
'type': 'websocket'}
Hello,
You are right. We forgot to add the parameter query_string
in websocket_connect()
(as in the regular open()
method).
I encourage you to open a PR and fix it yourself, if you don't mind (I can help you with the fix if you need it).
Thank you!
I have created PR https://github.com/vinissimus/async-asgi-testclient/pull/15 but use it please only as reference :)
Version 1.1.1 released
Hello,
Thanks for your library but it seems it has some problems which has to be resolved
WebSocket URL with query params does not work