From 6b80626dca9bb7bdfffb899423d71b899fdbd9e9 Mon Sep 17 00:00:00 2001 From: Sheogorath Date: Mon, 17 Sep 2018 23:59:50 +0200 Subject: 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 --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app.js') 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 }) -- cgit v1.2.3