server: Maintain compatibility with socket.io v2.
This commit is contained in:
parent
7ee1ec2db1
commit
f1140b6b12
1 changed files with 2 additions and 1 deletions
|
|
@ -914,7 +914,8 @@ var server = http.createServer(function(request, response) {
|
||||||
var io = socketio(server, {
|
var io = socketio(server, {
|
||||||
'cors': {
|
'cors': {
|
||||||
'origin': '*:*',
|
'origin': '*:*',
|
||||||
}
|
},
|
||||||
|
'allowEIO3': true
|
||||||
});
|
});
|
||||||
|
|
||||||
io.on('connection', function(socket) {
|
io.on('connection', function(socket) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue