MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / getEnvironmentdWebsocketScheme

Function getEnvironmentdWebsocketScheme

console/src/config/apiUrls.ts:85–95  ·  view source on GitHub ↗
({
  buildConstants,
  isLocalImpersonation,
}: {
  buildConstants: BuildConstants;
  isLocalImpersonation: boolean;
})

Source from the content-addressed store, hash-verified

83}
84
85export function getEnvironmentdWebsocketScheme({
86 buildConstants,
87 isLocalImpersonation,
88}: {
89 buildConstants: BuildConstants;
90 isLocalImpersonation: boolean;
91}) {
92 return isSqlApiTlsEnabled({ buildConstants, isLocalImpersonation })
93 ? ("wss" as const)
94 : ("ws" as const);
95}

Callers 2

CloudAppConfigClass · 0.90

Calls 1

isSqlApiTlsEnabledFunction · 0.85

Tested by

no test coverage detected