Re:Native Rust Support on Cloudflare Workers
by nilslice on Thursday September 09, 2021 @10:40AM
(#28470206)
Author here! No websocket support yet, but it’s definitely on the roadmap. If you have ideas or suggestions for a nice Rust interface for it please share on the GitHub repo. Would appreciate it!
[ Parent
| on HN ]
Re:Native Rust Support on Cloudflare Workers
by paulgb on Thursday September 09, 2021 @11:13AM
(#28470583)
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.