fix(cvm-server): add WebSocket polyfill from ws for non-Bun runtimes
This commit is contained in:
parent
571257e5c3
commit
2e4930af2c
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||||
* ─────────────────────────────────────────────────────────────────────────────
|
* ─────────────────────────────────────────────────────────────────────────────
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue