MCPcopy Index your code
hub / github.com/Ptechgithub/pp-worker / log

Function log

_worker.js:176–178  ·  view source on GitHub ↗
(/** @type {string} */ info, /** @type {string | undefined} */ event)

Source from the content-addressed store, hash-verified

174 let address = '';
175 let portWithRandomLog = '';
176 const log = (/** @type {string} */ info, /** @type {string | undefined} */ event) => {
177 console.log(`[${address}:${portWithRandomLog}] ${info}`, event || '');
178 };
179 const earlyDataHeader = request.headers.get('sec-websocket-protocol') || '';
180
181 const readableWebSocketStream = makeReadableWebSocketStream(webSocket, earlyDataHeader, log);

Callers 9

closeFunction · 0.85
abortFunction · 0.85
vlessOverWSHandlerFunction · 0.85
connectAndWriteFunction · 0.85
startFunction · 0.85
cancelFunction · 0.85
remoteSocketToWSFunction · 0.85
writeFunction · 0.85
handleUDPOutBoundFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected