Fix worker websocket runtime

This commit is contained in:
MiTHRAL 2026-05-26 15:39:05 -04:00
parent 5b356c2cf6
commit 42c9101a9f
2 changed files with 7 additions and 1 deletions

View file

@ -11,6 +11,7 @@
"@dank074/discord-video-stream": "6.0.0",
"discord.js-selfbot-v13": "^3.7.1",
"dotenv": "^17.3.1",
"node-gyp": "^11.2.0"
"node-gyp": "^11.2.0",
"ws": "^8.18.3"
}
}

View file

@ -1,5 +1,10 @@
const http = require("http");
const { URL } = require("url");
const WebSocket = require("ws");
if (typeof globalThis.WebSocket === "undefined") {
globalThis.WebSocket = WebSocket;
}
try {
require("dotenv").config();