We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ws
1 parent 91e1c8b commit f314475Copy full SHA for f314475
packages/engine.io-client/lib/transports/websocket.node.ts
@@ -1,4 +1,4 @@
1
-import { WebSocket } from "ws";
+import * as ws from "ws";
2
import type { Packet, RawData } from "engine.io-parser";
3
import { BaseWS } from "./websocket.js";
4
@@ -27,7 +27,7 @@ export class WS extends BaseWS {
27
opts.headers.cookie.push(`${name}=${cookie.value}`);
28
}
29
30
- return new WebSocket(uri, protocols, opts);
+ return new ws.WebSocket(uri, protocols, opts);
31
32
33
doWrite(packet: Packet, data: RawData) {
0 commit comments