Merge pull request #88 from overleaf/spd-socketio-bump

Update socket.io to latest patch release
This commit is contained in:
Simon Detheridge 2020-02-04 10:44:28 +00:00 committed by GitHub
commit a7ec454ed3
3 changed files with 1399 additions and 644 deletions

File diff suppressed because it is too large Load diff

View file

@ -34,7 +34,7 @@
"request": "^2.88.0",
"session.socket.io": "^0.1.6",
"settings-sharelatex": "^1.1.0",
"socket.io": "0.9.16",
"socket.io": "0.9.19",
"socket.io-client": "^0.9.16"
},
"devDependencies": {

View file

@ -6,7 +6,7 @@ if(process.versions.node.split('.')[0] >= 7) {
var io = require("socket.io");
if (io.version === "0.9.16") {
if (io.version === "0.9.16" || io.version === "0.9.19") {
console.log("patching socket.io hybi-16 transport frame prototype");
var transports = require("socket.io/lib/transports/websocket/hybi-16.js");
transports.prototype.frame = patchedFrameHandler;