MCPcopy Index your code
hub / github.com/nodejs/node / _discoverWebsocketPath

Method _discoverWebsocketPath

lib/internal/debugger/inspect_client.js:310–314  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

308 }
309
310 async _discoverWebsocketPath() {
311 const { 0: { webSocketDebuggerUrl } } = await this._fetchJSON('/json');
312 const { pathname, search } = new URL(webSocketDebuggerUrl);
313 return `${pathname}${search}`;
314 }
315
316 _connectWebsocket(urlPath) {
317 this.reset();

Callers 1

connectMethod · 0.95

Calls 1

_fetchJSONMethod · 0.95

Tested by

no test coverage detected