This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fs from "fs"; | |
import { WebSocket } from "ws"; | |
async function getWebSocketDebuggerUrl() { | |
const res = await fetch("http://localhost:9229/json"); | |
const data = await res.json(); | |
return data[0].webSocketDebuggerUrl; | |
} | |
let ws: WebSocket; |