diff options
author | Sheogorath | 2018-09-17 23:59:50 +0200 |
---|---|---|
committer | Sheogorath | 2018-09-18 00:02:23 +0200 |
commit | 6b80626dca9bb7bdfffb899423d71b899fdbd9e9 (patch) | |
tree | 4e5b67f8a8d541e86b45aafb9eeca96ec82fe841 /app.js | |
parent | fe977434f9e90479c846f8bada2a6ce8df99e656 (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 '')
-rw-r--r-- | app.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 }) |