MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / parseURL

Function parseURL

scripts/hosted_mode/server.js:10–12  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

8const WebSocketServer = require('ws').Server;
9
10function parseURL(url) {
11 return new URL(url, 'http://localhost');
12}
13
14const remoteDebuggingPort = parseInt(process.env.REMOTE_DEBUGGING_PORT, 10) || 9222;
15const port = parseInt(process.env.PORT, 10);

Callers 2

requestHandlerFunction · 0.85
inferContentTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected