From ffc9c572074fedc8b8ed126090aea2a2b7bf75d4 Mon Sep 17 00:00:00 2001 From: ToriLindsay Date: Mon, 17 Mar 2025 15:25:07 +0000 Subject: [PATCH 1/3] Add additional info for worker service binding rpc example --- .../workers/runtime-apis/bindings/service-bindings/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/workers/runtime-apis/bindings/service-bindings/index.mdx b/src/content/docs/workers/runtime-apis/bindings/service-bindings/index.mdx index 053abbc2b6382c9..a1722e811453dc9 100644 --- a/src/content/docs/workers/runtime-apis/bindings/service-bindings/index.mdx +++ b/src/content/docs/workers/runtime-apis/bindings/service-bindings/index.mdx @@ -56,10 +56,10 @@ Worker A that declares a Service binding to Worker B can call Worker B in two di ## Example — build your first Service binding using RPC +This example [extends the `WorkerEntrypoint class`](https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/rpc/#the-workerentrypoint-class) to support RPC-based Service bindings. First, create the Worker that you want to communicate with. Let's call this "Worker B". Worker B exposes the public method, `add(a, b)`: - ```toml From 004e3d4be39810f79ae14dacc47832ecb5731563 Mon Sep 17 00:00:00 2001 From: ToriLindsay Date: Mon, 17 Mar 2025 15:29:57 +0000 Subject: [PATCH 2/3] Update src/content/docs/workers/runtime-apis/bindings/service-bindings/index.mdx --- .../workers/runtime-apis/bindings/service-bindings/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/workers/runtime-apis/bindings/service-bindings/index.mdx b/src/content/docs/workers/runtime-apis/bindings/service-bindings/index.mdx index a1722e811453dc9..5e424082446627a 100644 --- a/src/content/docs/workers/runtime-apis/bindings/service-bindings/index.mdx +++ b/src/content/docs/workers/runtime-apis/bindings/service-bindings/index.mdx @@ -56,7 +56,7 @@ Worker A that declares a Service binding to Worker B can call Worker B in two di ## Example — build your first Service binding using RPC -This example [extends the `WorkerEntrypoint class`](https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/rpc/#the-workerentrypoint-class) to support RPC-based Service bindings. +This example [extends the `WorkerEntrypoint` class](https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/rpc/#the-workerentrypoint-class) to support RPC-based Service bindings. First, create the Worker that you want to communicate with. Let's call this "Worker B". Worker B exposes the public method, `add(a, b)`: From 36f719bc5d785a3220cc0eef3c286b00bdfb8eee Mon Sep 17 00:00:00 2001 From: ToriLindsay Date: Mon, 17 Mar 2025 15:30:38 +0000 Subject: [PATCH 3/3] Update src/content/docs/workers/runtime-apis/bindings/service-bindings/index.mdx --- .../workers/runtime-apis/bindings/service-bindings/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/workers/runtime-apis/bindings/service-bindings/index.mdx b/src/content/docs/workers/runtime-apis/bindings/service-bindings/index.mdx index 5e424082446627a..b431ef46544ce1e 100644 --- a/src/content/docs/workers/runtime-apis/bindings/service-bindings/index.mdx +++ b/src/content/docs/workers/runtime-apis/bindings/service-bindings/index.mdx @@ -56,7 +56,7 @@ Worker A that declares a Service binding to Worker B can call Worker B in two di ## Example — build your first Service binding using RPC -This example [extends the `WorkerEntrypoint` class](https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/rpc/#the-workerentrypoint-class) to support RPC-based Service bindings. +This example [extends the `WorkerEntrypoint` class](/workers/runtime-apis/bindings/service-bindings/rpc/#the-workerentrypoint-class) to support RPC-based Service bindings. First, create the Worker that you want to communicate with. Let's call this "Worker B". Worker B exposes the public method, `add(a, b)`: