This PR adds support for RPC via service bindings and workers defined as classes. It does this by using a class that extends WorkerEntrypoint as the wrapping worker that contains the module runner. The class constructor returns a Proxy that wraps the class and intercepts any method calls. These are then forwarded to the user code.
resolves #1, resolves #2
This PR adds support for RPC via service bindings and workers defined as classes. It does this by using a class that extends
WorkerEntrypoint
as the wrapping worker that contains the module runner. The class constructor returns aProxy
that wraps the class and intercepts any method calls. These are then forwarded to the user code.