Skip to content

Commit c0a675a

Browse files
authored
jp_ws_fetch: passthrough kwargs to websocket_connect (#78)
allows setting things like subprotocols
1 parent 13cedff commit c0a675a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_jupyter/jupyter_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def client_fetch(*parts, headers=None, params=None, **kwargs):
328328
headers.setdefault(key, value)
329329
# Make request.
330330
req = tornado.httpclient.HTTPRequest(url, headers=headers, connect_timeout=120)
331-
return tornado.websocket.websocket_connect(req)
331+
return tornado.websocket.websocket_connect(req, **kwargs)
332332

333333
return client_fetch
334334

0 commit comments

Comments
 (0)