Skip to content

Commit 702c248

Browse files
authored
Re-enable websocket ping/pong from the server (#1243)
1 parent 2d01f84 commit 702c248

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

jupyter_server/services/kernels/websocket.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ async def get(self, kernel_id):
6868

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

0 commit comments

Comments
 (0)