mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #66 from overleaf/msm-patched-eventemitter-socketio-node7
Patched EventEmitter for socket.io compatibility with Node >= 7
This commit is contained in:
commit
49c7bde799
1 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
// EventEmitter has been removed from process in node >= 7
|
||||||
|
// https://github.com/nodejs/node/commit/62b544290a075fe38e233887a06c408ba25a1c71
|
||||||
|
if(process.versions.node.split('.')[0] >= 7) {
|
||||||
|
process.EventEmitter = require('events')
|
||||||
|
}
|
||||||
|
|
||||||
var io = require("socket.io");
|
var io = require("socket.io");
|
||||||
|
|
||||||
if (io.version === "0.9.16") {
|
if (io.version === "0.9.16") {
|
||||||
|
|
Loading…
Reference in a new issue