add flush

This commit is contained in:
Will McGugan
2023-04-24 17:21:59 +01:00
parent 68f58acb49
commit 5ef82192d3

View File

@@ -46,7 +46,10 @@ class JupyterDriver(Driver):
# loop.call_soon_threadsafe(self.websocket.send_bytes, data.encode("utf-8"))
def flush(self) -> None:
pass
asyncio.run_coroutine_threadsafe(
self.websocket.drain(),
loop=self._loop,
)
def _enable_mouse_support(self) -> None:
"""Enable reporting of mouse events."""