MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / endpoint

Function endpoint

scripts/e2e-webrtc-reliability.mjs:70–72  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

68const requireVisualSamples = process.env.SIMDECK_E2E_REQUIRE_VISUAL !== "0";
69
70function endpoint(path) {
71 return new URL(`${apiRootPath}${path}`, serverUrl).toString();
72}
73
74function apiRootPathForViewerUrl(url) {
75 const match = url.pathname.match(/^\/simulator\/([^/]+)/);

Callers 2

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected