MCPcopy Index your code
hub / github.com/TanStack/devtools / getDefaultPort

Function getDefaultPort

packages/event-bus/src/client/client.ts:9–13  ·  view source on GitHub ↗
(configPort: number)

Source from the content-addressed store, hash-verified

7declare const __TANSTACK_DEVTOOLS_PROTOCOL__: 'http' | 'https' | undefined
8
9function getDefaultPort(configPort: number): number {
10 if (typeof __TANSTACK_DEVTOOLS_PORT__ !== 'undefined')
11 return __TANSTACK_DEVTOOLS_PORT__
12 return configPort
13}
14
15function getDefaultHost(configHost: string): string {
16 if (typeof __TANSTACK_DEVTOOLS_HOST__ !== 'undefined')

Callers 1

constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected