MCPcopy Create free account

hub / github.com/Ptechgithub/configs / functions

Functions32 in github.com/Ptechgithub/configs

↓ 10 callersFunctionlog
(/** @type {string} */ info, /** @type {string | undefined} */ event)
worker.js:173
↓ 4 callersFunctionsafeCloseWebSocket
* Closes a WebSocket connection safely without throwing exceptions. * @param {import("@cloudflare/workers-types").WebSocket} socket The WebSocket con
worker.js:609
↓ 3 callersFunctiongenString
(stringLength)
wa.py:54
↓ 2 callersFunctionconnectAndWrite
* Connects to a given address and port and writes data to the socket. * @param {string} address The address to connect to. * @param {number} port
worker.js:277
↓ 2 callersFunctiondisplay_id
(file_path, name)
wa.py:18
↓ 2 callersFunctionisValidUUID
* Checks if a given string is a valid UUID. * Note: This is not a real UUID validation. * @param {string} uuid The string to validate as a UUID. *
worker.js:598
↓ 2 callersFunctionremoteSocketToWS
* Converts a remote socket to a WebSocket connection. * @param {import("@cloudflare/workers-types").Socket} remoteSocket The remote socket to convert
worker.js:508
↓ 1 callersFunctionbase64ToArrayBuffer
* Decodes a base64 string into an ArrayBuffer. * @param {string} base64Str The base64 string to decode. * @returns {{earlyData: ArrayBuffer|null, er
worker.js:577
↓ 1 callersFunctioncreateVLESSSub
(userID_Path, hostName)
worker.js:827
↓ 1 callersFunctiondigitString
(stringLength)
wa.py:61
↓ 1 callersFunctionfetch
* @param {import("@cloudflare/workers-types").Request} request * @param {{UUID: string, PROXYIP: string, DNS_RESOLVER_URL: string, NODE_ID: int, API
worker.js:28
↓ 1 callersFunctiongetVLESSConfig
* * @param {string} userID - single or comma separated userIDs * @param {string | null} hostName * @returns {string}
worker.js:717
↓ 1 callersFunctionhandleTCPOutBound
* Handles outbound TCP connections. * * @param {any} remoteSocket * @param {string} addressRemote The remote address to connect to. * @param {num
worker.js:269
↓ 1 callersFunctionhandleUDPOutBound
* Handles outbound UDP traffic by transforming the data into DNS queries and sending them over a WebSocket connection. * @param {import("@cloudflare/
worker.js:645
↓ 1 callersFunctionhashHex_f
(string)
worker.js:151
↓ 1 callersFunctionmakeReadableWebSocketStream
* Creates a readable stream from a WebSocket server, allowing for data to be read from the WebSocket. * @param {import("@cloudflare/workers-types").W
worker.js:319
↓ 1 callersFunctionprocessVlessHeader
* Processes the VLESS header buffer and returns an object with the relevant information. * @param {ArrayBuffer} vlessBuffer The VLESS header buffer t
worker.js:378
↓ 1 callersFunctionretry
* Retries connecting to the remote address and port if the Cloudflare socket has no incoming data. * @returns {Promise<void>} A Promise that resolve
worker.js:295
↓ 1 callersFunctionrun
()
wa.py:70
↓ 1 callersFunctionstringify
(arr, offset = 0)
worker.js:629
↓ 1 callersFunctionunsafeStringify
(arr, offset = 0)
worker.js:625
↓ 1 callersFunctionvlessOverWSHandler
* Handles VLESS over WebSocket requests by creating a WebSocket pair, accepting the WebSocket connection, and processing the VLESS header. * @param {
worker.js:165
Functionabort
(reason)
worker.js:244
Functioncancel
(reason)
worker.js:350
Functionclose
()
worker.js:241
Functionflush
(controller)
worker.js:665
Functionon_progress
(stream, chunk, bytes_remaining)
bot.py:5
Functionpull
(controller)
worker.js:345
Functionstart
(controller)
worker.js:322
Functiontransform
(chunk, controller)
worker.js:652
Functionuuid_validator
(request)
worker.js:134
Functionwrite
(chunk, controller)
worker.js:189