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

Function tcpPort

packages/platform/node/test/NodeHttpServer.test.ts:882–886  ·  view source on GitHub ↗
(server: Http.Server)

Source from the content-addressed store, hash-verified

880)
881
882const tcpPort = (server: Http.Server): number => {
883 const address = server.address()
884 assert(address !== null && typeof address !== "string")
885 return address.port
886}

Callers 1

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected