summaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
authorSheogorath2018-09-17 23:59:50 +0200
committerSheogorath2018-09-18 00:02:23 +0200
commit6b80626dca9bb7bdfffb899423d71b899fdbd9e9 (patch)
tree4e5b67f8a8d541e86b45aafb9eeca96ec82fe841 /app.js
parentfe977434f9e90479c846f8bada2a6ce8df99e656 (diff)
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>
Diffstat (limited to 'app.js')
-rw-r--r--app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.js b/app.js
index 24f0516f..cd7ce915 100644
--- a/app.js
+++ b/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
})