MCPcopy Create free account
hub / github.com/Effect-TS/effect / tcpPort

Function tcpPort

packages/platform/node/test/NodeHttpServer.test.ts:2675–2679  ·  view source on GitHub ↗
(server: Net.Server)

Source from the content-addressed store, hash-verified

2673 })
2674
2675const tcpPort = (server: Net.Server): number => {
2676 const address = server.address()
2677 assert(address !== null && typeof address !== "string")
2678 return address.port
2679}
2680
2681// Sends the requests pipelined on one connection and returns everything received until the connection closes.
2682const rawGet = (port: number, paths: ReadonlyArray<string>, method = "GET") =>

Callers 1

Calls 2

assertFunction · 0.50
addressMethod · 0.45

Tested by

no test coverage detected