Skip to content

Commit 73c8089

Browse files
authored
Merge pull request #8127 from nightscout/wip/bewest/restore-v2
socket.io: enable legacy v2 connections
2 parents cfe89c8 + 19be01d commit 73c8089

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/server/websocket.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ function init (env, ctx, server) {
7575
'log level': 0
7676
}).listen(server, {
7777
//these only effect the socket.io.js file that is sent to the client, but better than nothing
78-
'browser client minification': true
78+
// compat with v2 client
79+
allowEIO3: true
80+
, 'browser client minification': true
7981
, 'browser client etag': true
8082
, 'browser client gzip': false
8183
, 'perMessageDeflate': {

0 commit comments

Comments
 (0)