Skip to content

Commit

Permalink
Re-enable websocket ping/pong from the server (#1243)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zsailer committed Mar 23, 2023
1 parent 2d01f84 commit 702c248
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jupyter_server/services/kernels/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ async def get(self, kernel_id):

async def open(self, kernel_id):
"""Open a kernel websocket."""
# Need to call super here to make sure we
# begin a ping-pong loop with the client.
super().open()
# Wait for the kernel to emit an idle status.
self.log.info(f"Connecting to kernel {self.kernel_id}.")
await self.connection.connect()
Expand Down

0 comments on commit 702c248

Please sign in to comment.