Skip to content

Commit 7001a90

Browse files
authored
[workers] Add connection status docs for service bindings local dev (#17994)
1 parent 1408006 commit 7001a90

File tree

1 file changed

+10
-1
lines changed
  • src/content/docs/workers/runtime-apis/bindings/service-bindings

1 file changed

+10
-1
lines changed

src/content/docs/workers/runtime-apis/bindings/service-bindings/index.mdx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,16 @@ For more about the lifecycle of calling a Worker over a Service Binding via RPC,
117117

118118
## Local development
119119

120-
Local development is supported for Service bindings. For each Worker, open a new terminal and use [`wrangler dev`](/workers/wrangler/commands/#dev) in the relevant directory or use the `SCRIPT` option to specify the relevant Worker's entrypoint.
120+
Local development is supported for Service bindings. For each Worker, open a new terminal and use [`wrangler dev`](/workers/wrangler/commands/#dev) in the relevant directory. When running `wrangler dev`, service bindings will show as `connected`/`not connected` depending on whether Wrangler can find a running `wrangler dev` session for that Worker. For example:
121+
122+
```sh
123+
$ wrangler dev
124+
...
125+
Your worker has access to the following bindings:
126+
- Services:
127+
- SOME_OTHER_WORKER: some-other-worker connected
128+
- ANOTHER_WORKER: another-worker not connected
129+
```
121130

122131
## Deployment
123132

0 commit comments

Comments
 (0)