6 ms·
I've actually been giving this some thought as I've been working on a WebSocket server that hosts a WebAssembly module[1]. So far my approach has been to expose
by paulgb 5y ago
I've actually been giving this some thought as I've been working on a WebSocket server that hosts a WebAssembly module[1]. So far my approach has been to expose a function on the guest that is called when a message is received, and a function on the host that is called when the guest wants to send a message. It's simple, but it works. It would be pretty cool to have a simple interface like that, but with the power of durable objects as well.
https://github.com/jamsocket/jamsocket https://github.com/jamsocket/jamsocket
- nilslice 5y agoJamsocket looks really cool! Will take a closer look.