Skip to content

Commit ae8fa41

Browse files
authored
Merge pull request #958 from SISheogorath/fix/uws
Replace `uws` with `ws` package
2 parents edcd8a2 + 6b80626 commit ae8fa41

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ app.use(morgan('combined', {
5858

5959
// socket io
6060
var io = require('socket.io')(server)
61-
io.engine.ws = new (require('uws').Server)({
61+
io.engine.ws = new (require('ws').Server)({
6262
noServer: true,
6363
perMessageDeflate: false
6464
})

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,12 @@
125125
"to-markdown": "^3.0.3",
126126
"toobusy-js": "^0.5.1",
127127
"uuid": "^3.1.0",
128-
"uws": "~0.14.1",
129128
"validator": "^10.4.0",
130129
"velocity-animate": "^1.4.0",
131130
"visibilityjs": "^1.2.4",
132131
"viz.js": "^1.7.0",
133132
"winston": "^2.3.0",
133+
"ws": "^6.0.0",
134134
"xss": "^1.0.3"
135135
},
136136
"engines": {
@@ -212,5 +212,9 @@
212212
"lib/ot",
213213
"public/vendor"
214214
]
215+
},
216+
"optionalDependencies": {
217+
"bufferutil": "^4.0.0",
218+
"utf-8-validate": "^5.0.1"
215219
}
216220
}

0 commit comments

Comments
 (0)