actually nm i think they are coming up

actually nm i think they are coming up wih something better listenTcp @6 (filter :IpFilter, handler :TcpHandler) -> (handle :Capability); https://github.com/cloudflare/workerd/blob/645f2864d03995f102adbc8b8ea1c01fc4c023c3/src/workerd/io/container.capnp#L73C2-L73C80
2 Replies
Mike Nomitch
Mike Nomitch•2mo ago
Hey - I think you got there on your own (impressive!) but yeah it is coming but not yet implemented Was hoping I was clear on that in the presentation if you saw it, but maybe sounded like it was already done - sorry if so!
KZ
KZOP•2mo ago
ya i have a special skill set i can read code 😛 . given that durableobject and by extension the cloudflare:* module specifier will figure heavily going forward... i'm wondering if you guys have given thought to the fact that bundling especially in full stack scenario requires loading the build module. basically in react-router, tanstack, astro if you have a partial render and you have durableobject in the main module because you don't have multiple entries for a worker, node tries to load/resolve cloudflare:workers the cloudflare-vite plugin "resolves" this by preventing the part of the build lifecycle is there any chance you guys will support separate entry point definitions in wrangler or build up wrangler so that there's a run or exec that which wraps node with shimming(miniflare*) cloudflare: modules? way i'm trying to get around it now is by creating a mocked loader/resolve for cloudfare going to add into node the ideal would probably be the first where you can define secondary entrypoints for the durable object/rpc defnitions @Mike Nomitch https://github.com/cloudflare/workers-sdk/issues/9107 its not your problem because this the vite plugin is the issue but you could be the solution if there was a way to not require that durable objects, rpc be exported from the main the counter to all this is it best practices to create separate workers for lets say a core service like auth and it will handle shallow auth requests everytime i'm just wondering ok i think you guys are pushing that so maybe that's the solution- lol right as i'm asking this to you it pops up notifications

Did you find this page helpful?