Commit Detail
Commit 672d274
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
8 files changed~8 modified