server: Maintain compatibility with socket.io v2.

This commit is contained in:
Joachim Bauch 2022-08-12 11:08:14 +02:00
parent 7ee1ec2db1
commit f1140b6b12
No known key found for this signature in database
GPG key ID: 77C1D22D53E15F02

View file

@ -914,7 +914,8 @@ var server = http.createServer(function(request, response) {
var io = socketio(server, {
'cors': {
'origin': '*:*',
}
},
'allowEIO3': true
});
io.on('connection', function(socket) {