diff options
author | Sheogorath | 2020-06-08 16:07:30 +0200 |
---|---|---|
committer | Sheogorath | 2020-06-08 16:10:00 +0200 |
commit | cdd18aebfdfe50fa1b26b9fa7913de547ff8c78f (patch) | |
tree | aa8761b81f41712c7feef46b09874768f4e857d2 | |
parent | 383d791a50919bb9890a3f3f797ecc95125ab8bf (diff) |
Remove unused socket.io cookie
The socket.io cookie doesn't really have any purpose as it's no longer
user in modern socket.io versions. This patch disables it.
References:
https://github.com/socketio/socket.io/issues/2276
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
-rw-r--r-- | app.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -57,7 +57,7 @@ app.use(morgan('combined', { })) // socket io -var io = require('socket.io')(server) +var io = require('socket.io')(server, {cookie: false}) io.engine.ws = new (require('ws').Server)({ noServer: true, perMessageDeflate: false |