Skip to content

Commit

Permalink
jp_ws_fetch: passthrough kwargs to websocket_connect (#78)
Browse files Browse the repository at this point in the history
allows setting things like subprotocols
  • Loading branch information
minrk authored Apr 3, 2024
1 parent 13cedff commit c0a675a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_jupyter/jupyter_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def client_fetch(*parts, headers=None, params=None, **kwargs):
headers.setdefault(key, value)
# Make request.
req = tornado.httpclient.HTTPRequest(url, headers=headers, connect_timeout=120)
return tornado.websocket.websocket_connect(req)
return tornado.websocket.websocket_connect(req, **kwargs)

return client_fetch

Expand Down

0 comments on commit c0a675a

Please sign in to comment.