I can create a worker, that exports a class extending
WorkerEntrypoint
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
RpcTarget
. And return these from the
WorkerEntrypoint
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