MCPcopy Create free account
hub / github.com/Ptechgithub/configs / log

Function log

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

Source from the content-addressed store, hash-verified

171 let portWithRandomLog = '';
172 let currentDate = new Date();
173 const log = (/** @type {string} */ info, /** @type {string | undefined} */ event) => {
174 console.log(`[${currentDate} ${address}:${portWithRandomLog}] ${info}`, event || '');
175 };
176 const earlyDataHeader = request.headers.get('sec-websocket-protocol') || '';
177
178 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