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

Function getDefaultProtocol

packages/event-bus/src/client/client.ts:21–27  ·  view source on GitHub ↗
(
  configProtocol: 'http' | 'https',
)

Source from the content-addressed store, hash-verified

19}
20
21function getDefaultProtocol(
22 configProtocol: 'http' | 'https',
23): 'http' | 'https' {
24 if (typeof __TANSTACK_DEVTOOLS_PROTOCOL__ !== 'undefined')
25 return __TANSTACK_DEVTOOLS_PROTOCOL__
26 return configProtocol
27}
28
29interface TanStackDevtoolsEvent<TEventName extends string, TPayload = any> {
30 type: TEventName

Callers 1

constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected