Spaces:
Paused
Paused
Download scripts/scratch/debug-sockets.mjs from igorkurgin/omniroute: direct link, hf CLI and curl.
- Browser
- Download file 529 Bytes
-
https://huggingface.co/spaces/igorkurgin/omniroute/resolve/main/scripts/scratch/debug-sockets.mjs
- Command line
-
hf download hf://spaces/igorkurgin/omniroute/scripts/scratch/debug-sockets.mjs
-
curl -L -o debug-sockets.mjs https://huggingface.co/spaces/igorkurgin/omniroute/resolve/main/scripts/scratch/debug-sockets.mjs
529 Bytes
| import process from "node:process"; | |
| import("./tests/integration/chat-pipeline.test.mjs").then((mod) => { | |
| setTimeout(() => { | |
| const activeHandles = process._getActiveHandles(); | |
| console.log("ACTIVE HANDLES: " + activeHandles.length); | |
| activeHandles.forEach((handle, i) => { | |
| console.log(`Handle ${i}:`, handle?.constructor?.name); | |
| if (handle?.constructor?.name === "Socket") { | |
| console.log("Socket ports:", handle?.localPort, handle?.remotePort); | |
| } | |
| }); | |
| process.exit(1); | |
| }, 15000); | |
| }); | |