MCPcopy Create free account
hub / github.com/SamNet-dev/snix / cfConnect

Function cfConnect

cfworker/worker.js:183–186  ·  view source on GitHub ↗
(host, port)

Source from the content-addressed store, hash-verified

181
182// Cloudflare-specific outbound TCP via the `connect` API.
183async function cfConnect(host, port) {
184 const { connect } = await import("cloudflare:sockets");
185 return connect({ hostname: host, port });
186}
187
188// -- helpers --------------------------------------------------------------
189

Callers 1

onMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected