MCPcopy Create free account
hub / github.com/cloudflare/computer / connect

Function connect

packages/computerd/src/cli/computerd.test.ts:339–342  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

337
338 const peerUrl = `http://127.0.0.1:${peerPort}`;
339 const connect = async () => {
340 const res = await postJson(`http://127.0.0.1:${port}/connect`, { url: peerUrl });
341 expect(res.statusCode).toBe(200);
342 };
343
344 await connect();
345 // Wait for the first WS to actually attach on the peer side before

Callers 1

computerd.test.tsFile · 0.70

Calls 1

postJsonFunction · 0.85

Tested by

no test coverage detected