Worker service-binding using RPC example incomplete #17421
Labels
content:edit
Request for content edits
documentation
Documentation edits
product:workers
Related to Workers product
Existing documentation URL(s)
https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/#example--build-your-first-service-binding-using-rpc
What changes are you suggesting?
The example is too light on information (we should link to the reference doc for Service Workers in the example), and the example doesn't work as-is.
If you attempt to deploy a Worker defined as:
Wrangler throws:
I had to find https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/rpc/#the-workerentrypoint-class to make it work, where it defines it as:
Additional information
No response
The text was updated successfully, but these errors were encountered: