mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 07:04:45 -04: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
|
||||
var io = require('socket.io')(server);
|
||||
io.engine.ws = new (require('uws').Server)({
|
||||
noServer: true,
|
||||
perMessageDeflate: false
|
||||
});
|
||||
|
||||
//others
|
||||
var realtime = require("./lib/realtime.js");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue