Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cortexkit/magic-context
/ isValidPort
Function
isValidPort
packages/plugin/src/shared/rpc-utils.ts:80–82 ·
view source on GitHub ↗
(port: number)
Source
from the content-addressed store, hash-verified
78
}
79
80
function
isValidPort(port: number): boolean {
81
return
Number.isInteger(port) && port > 0 && port <= 65535;
82
}
Callers
1
parseRpcPortFile
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected