Skip to content
Commit Detail

Commit 672d274

Author
Dan Lapid <dan.lapid@gmail.com> 2025-12-07 21:28:07 +0000
Parents
b6ad306
Tree
0b04a4e
Refactor workerdDebugPort binding to use dynamic connect() API

Change the workerdDebugPort binding API from static address configuration
to a dynamic connect() method. Instead of configuring the remote address
in the config file, the binding now provides a connect(address) method
that returns a WorkerdDebugPortClient.

New API:
  const client = await env.DEBUG_PORT.connect("localhost:1234");
  const fetcher = await client.getEntrypoint("service", "entrypoint", props);
  const actor = await client.getActor("service", "class", actorId);

Files changed