3 ms·
I'm excited to try this. I made an attempt at writing a Rust Durable Object a while back and it was cumbersome at the time, so this looks great. If there's any
by paulgb 5y ago
I'm excited to try this. I made an attempt at writing a Rust Durable Object a while back and it was cumbersome at the time, so this looks great.
If there's anyone from CloudFlare here, I have a question: does this support WebSockets? At first glance over the docs I don't see an equivalent to WebSocketPair from the JS interface.
- nilslice 5y agoAuthor 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!
- paulgb 5y agoI'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.
- NicoJuicy 5y agoPerhaps a good time to mention that there is a quite active discord channel on cloudflare workers here: https://discord.gg/5aTJwnMZ https://discord.gg/5aTJwnMZ A sample app app of cloudflare workers ( a status page with pings in multiple regions): https://github.com/eidam/cf-workers-status-page https://github.com/eidam/cf-workers-status-page And the framework on top of cloudflare workers, inspired on next.js : https://flareact.com/ https://flareact.com/
- rita3ko 5y agoalso a good time to mention that if you build something in in rust using workers, you should submit it to win some free swag: https://challenge.developers.cloudflare.com/ https://challenge.developers.cloudflare.com/
- sayanarijit 5y agohttps://discord.gg/5aTJwnMZ https://discord.gg/5aTJwnMZ has expired