fix(cvm-server): add WebSocket polyfill from ws for non-Bun runtimes

This commit is contained in:
SkateSpots 2026-09-26 15:24:09 +07:00
parent 571257e5c3
commit 2e4930af2c

View file

@ -1,3 +1,7 @@
import { WebSocket } from "ws";
// @ts-ignore
globalThis.WebSocket = WebSocket as unknown as typeof globalThis.WebSocket;
/** /**
* SkateSpots CVM Server * SkateSpots CVM Server
* ───────────────────────────────────────────────────────────────────────────── * ─────────────────────────────────────────────────────────────────────────────