jupyterlite / terminal

A terminal for JupyterLite.
https://jupyterlite-terminal.vercel.app/
BSD 3-Clause "New" or "Revised" License
9 stars 2 forks source link

Replace postMessage from webworker with comlink callback #16

Closed ianthomas23 closed 4 months ago

ianthomas23 commented 4 months ago

Currently using postMessage to send messages from the WebWorker to the main thread. This PR replaces this with the use of a comlink-compatible callback which allows us to add type annotations to the callback code.