From cd3a82222f06400af8d386a2fdcbf68778148e02 Mon Sep 17 00:00:00 2001 From: Dave Carlson Date: Sat, 21 Oct 2023 13:11:19 -0700 Subject: [PATCH] restore compat with socket.io v2 client --- lib/server/websocket.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/server/websocket.js b/lib/server/websocket.js index 2924db0554d..95da7d906ce 100644 --- a/lib/server/websocket.js +++ b/lib/server/websocket.js @@ -75,7 +75,9 @@ function init (env, ctx, server) { 'log level': 0 }).listen(server, { //these only effect the socket.io.js file that is sent to the client, but better than nothing - 'browser client minification': true + // compat with v2 client + allowEIO3: true + , 'browser client minification': true , 'browser client etag': true , 'browser client gzip': false , 'perMessageDeflate': {