I am sitting here reading about

I am sitting here reading about JavaScript-native RPC in workers... https://blog.cloudflare.com/javascript-native-rpc Do I understand this correctly: I can create a worker, that exports a class extending WorkerEntrypoint . This worker kan be added as a binding to other workers, and all the methods will be avaiable. If I want to create more classes that I want the worker to export, i can create other classes that extend RpcTarget . And return these from the WorkerEntrypoint class. This way, i can create a whole app, and have it directly accessible from another worker, with no http. If this EntryPoint worker is updated, it will update on all other workers that has it in its bindings
1 Reply
Torbjørn
Torbjørn6mo ago
We could do this with the old worker bindings too, but now its just RPC. Am I understanding this correctly?
Want results from more Discord servers?
Add your server