Skip to content
Source
Sign inSign up
samwillis/neonbricks
Open History to see the last commit

node-websocket.ts

4 lines260 Bytes

1import WebSocket from "ws";
2// The Node harness uses ws so the SDK can force-terminate a close handshake.
3// Node 22's built-in browser-compatible socket can keep a CLI process alive.
4globalThis.WebSocket = WebSocket as unknown as typeof globalThis.WebSocket;