Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
882
const
tcpPort = (server: Http.Server): number => {
883
const
address = server.address()
884
assert(address !== null && typeof address !==
"string"
)
885
return
address.port
886
}
Callers
1
NodeHttpServer.test.ts
File · 0.85
Calls
1
assert
Function · 0.50
Tested by
no test coverage detected