MCPcopy Create free account
hub / github.com/callstack/agent-device / defaultPortForProtocol

Function defaultPortForProtocol

src/utils/runtime-transport.ts:56–60  ·  view source on GitHub ↗
(protocol: string)

Source from the content-addressed store, hash-verified

54}
55
56function defaultPortForProtocol(protocol: string): number | undefined {
57 if (protocol === 'https:') return 443;
58 if (protocol === 'http:') return 80;
59 return undefined;
60}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…