Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Ptechgithub/configs
/ functions
Functions
32 in github.com/Ptechgithub/configs
⨍
Functions
32
◇
Types & classes
0
↓ 10 callers
Function
log
(/** @type {string} */ info, /** @type {string | undefined} */ event)
worker.js:173
↓ 4 callers
Function
safeCloseWebSocket
* Closes a WebSocket connection safely without throwing exceptions. * @param {import("@cloudflare/workers-types").WebSocket} socket The WebSocket con
worker.js:609
↓ 3 callers
Function
genString
(stringLength)
wa.py:54
↓ 2 callers
Function
connectAndWrite
* 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 callers
Function
display_id
(file_path, name)
wa.py:18
↓ 2 callers
Function
isValidUUID
* 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 callers
Function
remoteSocketToWS
* Converts a remote socket to a WebSocket connection. * @param {import("@cloudflare/workers-types").Socket} remoteSocket The remote socket to convert
worker.js:508
↓ 1 callers
Function
base64ToArrayBuffer
* Decodes a base64 string into an ArrayBuffer. * @param {string} base64Str The base64 string to decode. * @returns {{earlyData: ArrayBuffer|null, er
worker.js:577
↓ 1 callers
Function
createVLESSSub
(userID_Path, hostName)
worker.js:827
↓ 1 callers
Function
digitString
(stringLength)
wa.py:61
↓ 1 callers
Function
fetch
* @param {import("@cloudflare/workers-types").Request} request * @param {{UUID: string, PROXYIP: string, DNS_RESOLVER_URL: string, NODE_ID: int, API
worker.js:28
↓ 1 callers
Function
getVLESSConfig
* * @param {string} userID - single or comma separated userIDs * @param {string | null} hostName * @returns {string}
worker.js:717
↓ 1 callers
Function
handleTCPOutBound
* Handles outbound TCP connections. * * @param {any} remoteSocket * @param {string} addressRemote The remote address to connect to. * @param {num
worker.js:269
↓ 1 callers
Function
handleUDPOutBound
* 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 callers
Function
hashHex_f
(string)
worker.js:151
↓ 1 callers
Function
makeReadableWebSocketStream
* 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 callers
Function
processVlessHeader
* 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 callers
Function
retry
* 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 callers
Function
run
()
wa.py:70
↓ 1 callers
Function
stringify
(arr, offset = 0)
worker.js:629
↓ 1 callers
Function
unsafeStringify
(arr, offset = 0)
worker.js:625
↓ 1 callers
Function
vlessOverWSHandler
* Handles VLESS over WebSocket requests by creating a WebSocket pair, accepting the WebSocket connection, and processing the VLESS header. * @param {
worker.js:165
Function
abort
(reason)
worker.js:244
Function
cancel
(reason)
worker.js:350
Function
close
()
worker.js:241
Function
flush
(controller)
worker.js:665
Function
on_progress
(stream, chunk, bytes_remaining)
bot.py:5
Function
pull
(controller)
worker.js:345
Function
start
(controller)
worker.js:322
Function
transform
(chunk, controller)
worker.js:652
Function
uuid_validator
(request)
worker.js:134
Function
write
(chunk, controller)
worker.js:189