mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-27 08:04:00 +00:00
Merge pull request #88 from overleaf/spd-socketio-bump
Update socket.io to latest patch release
This commit is contained in:
commit
a7ec454ed3
3 changed files with 1399 additions and 644 deletions
2039
services/real-time/npm-shrinkwrap.json
generated
2039
services/real-time/npm-shrinkwrap.json
generated
File diff suppressed because it is too large
Load diff
|
@ -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": {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue