Skip to content

Commit

Permalink
Pass session_id during Websocket connect
Browse files Browse the repository at this point in the history
  • Loading branch information
gogasca committed Jun 29, 2024
1 parent b85c15b commit bc68875
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jupyter_server/gateway/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ async def connect(self):
url_escape(self.kernel_id),
"channels",
)
if self.session_id:
ws_url += f"?session_id={self.session_id}"
self.log.info(f"Connecting to {ws_url}")
kwargs: dict[str, Any] = {}
kwargs = GatewayClient.instance().load_connection_args(**kwargs)
Expand Down

0 comments on commit bc68875

Please sign in to comment.