mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-15 07:34:42 -04:00
Replace uws
with ws
package
`uws` was deprecated by its maintainer and starts to cause more and more problems and issue reports. So it's time to replace it and use a maintained project instead. Lucky us, `uws` and `ws` can be used in an identical way, without problems. To provide better performance, we install the optional packages as well. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
This commit is contained in:
parent
fe977434f9
commit
6b80626dca
2 changed files with 6 additions and 2 deletions
2
app.js
2
app.js
|
@ -58,7 +58,7 @@ app.use(morgan('combined', {
|
|||
|
||||
// socket io
|
||||
var io = require('socket.io')(server)
|
||||
io.engine.ws = new (require('uws').Server)({
|
||||
io.engine.ws = new (require('ws').Server)({
|
||||
noServer: true,
|
||||
perMessageDeflate: false
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue