Skip to content

Commit 330ab4b

Browse files
fix websocket tests
1 parent a44bc4e commit 330ab4b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/engine.io/test/common.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
if (process.env.EIO_CLIENT === "3" && process.versions.node.startsWith("22")) {
2-
// FIXME WebSocket error with engine.io-client@3
1+
if (process.env.EIO_CLIENT === "3") {
2+
// we need the WebSocket object provided by the "ws" library to test the SSL certs and HTTP headers so we hide the now built-in WebSocket constructor
3+
// ref: https://nodejs.org/api/globals.html#class-websocket
34
global.WebSocket = null;
45
}
56

0 commit comments

Comments
 (0)