Welcome to to this little test. here are the 4 scenarios:

Why not just call the DO rpc directly? because locally thats not as easy. you can run multiple workers in 1 wrangler session BUT here we mix vite and wrangler which makes this not possible afaik

In these scenarios im calling an RPC method on a worker. That worker just calls a DO rpc method.

await all await last promise without await

in this scenario we get the DO stub from the worker and call the do rpc method on it

await all await last promise without await