mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-29 08:34:17 -05:00
Try to replace engine.io to uws in socket.io for better performance
This commit is contained in:
parent
09e6596074
commit
f387bb312f
2 changed files with 5 additions and 0 deletions
4
app.js
4
app.js
|
@ -58,6 +58,10 @@ app.use(morgan('combined', {
|
||||||
|
|
||||||
//socket io
|
//socket io
|
||||||
var io = require('socket.io')(server);
|
var io = require('socket.io')(server);
|
||||||
|
io.engine.ws = new (require('uws').Server)({
|
||||||
|
noServer: true,
|
||||||
|
perMessageDeflate: false
|
||||||
|
});
|
||||||
|
|
||||||
//others
|
//others
|
||||||
var realtime = require("./lib/realtime.js");
|
var realtime = require("./lib/realtime.js");
|
||||||
|
|
|
@ -96,6 +96,7 @@
|
||||||
"tedious": "^1.14.0",
|
"tedious": "^1.14.0",
|
||||||
"to-markdown": "^3.0.1",
|
"to-markdown": "^3.0.1",
|
||||||
"toobusy-js": "^0.5.1",
|
"toobusy-js": "^0.5.1",
|
||||||
|
"uws": "^0.11.0",
|
||||||
"visibilityjs": "^1.2.4",
|
"visibilityjs": "^1.2.4",
|
||||||
"viz.js": "^1.3.0",
|
"viz.js": "^1.3.0",
|
||||||
"winston": "^2.2.0",
|
"winston": "^2.2.0",
|
||||||
|
|
Loading…
Reference in a new issue