diff --git a/src/socket.io/index.js b/src/socket.io/index.js index 58134ae2e2..b77edbb57d 100644 --- a/src/socket.io/index.js +++ b/src/socket.io/index.js @@ -13,7 +13,7 @@ const logger = require('../logger'); const plugins = require('../plugins'); const ratelimit = require('../middleware/ratelimit'); -const Namespaces = {}; +const Namespaces = Object.create(null); const Sockets = module.exports;