File tree 3 files changed +7
-3
lines changed
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 22
22
node-version :
23
23
- 18
24
24
- 20
25
+ - 22
25
26
26
27
services :
27
28
redis :
Original file line number Diff line number Diff line change @@ -7,8 +7,6 @@ if (env.browser) {
7
7
require ( "./node" ) ;
8
8
}
9
9
10
- const Blob = require ( "blob" ) ;
11
-
12
10
require ( "./engine.io-client" ) ;
13
11
require ( "./socket" ) ;
14
12
require ( "./transport" ) ;
@@ -23,6 +21,6 @@ if (typeof ArrayBuffer !== "undefined") {
23
21
}
24
22
25
23
// Blob is available in Node.js since v18, but not yet supported by the `engine.io-parser` package
26
- if ( Blob && env . browser ) {
24
+ if ( typeof Blob === "function" && env . browser ) {
27
25
require ( "./blob" ) ;
28
26
}
Original file line number Diff line number Diff line change
1
+ if ( process . env . EIO_CLIENT === "3" && process . versions . node . startsWith ( "22" ) ) {
2
+ // FIXME WebSocket error with engine.io-client@3
3
+ global . WebSocket = null ;
4
+ }
5
+
1
6
const { listen, uServer } = require ( ".." ) ;
2
7
const { Socket } =
3
8
process . env . EIO_CLIENT === "3"
You can’t perform that action at this time.
0 commit comments