MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / probeHost

Function probeHost

apps/api/tests/helpers/valkey.ts:10–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8let availability: boolean | null = null;
9
10const probeHost = (): string =>
11 env.VALKEY_HOST === "localhost" ? "127.0.0.1" : env.VALKEY_HOST;
12
13const canOpenTcpConnection = (): Promise<boolean> => {
14 return new Promise((resolve) => {

Callers 1

canOpenTcpConnectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected