switch to @nodebb/socket.io-adapter-mongo
v1.18.x
Barış Soner Uşaklı 5 years ago
parent 18d892398f
commit 7ed1a0140a

@ -78,6 +78,7 @@
"morgan": "^1.10.0",
"mousetrap": "^1.6.5",
"@nodebb/mubsub": "^1.6.0",
"@nodebb/socket.io-adapter-mongo": "3.0.0",
"nconf": "^0.10.0",
"nodebb-plugin-composer-default": "6.3.43",
"nodebb-plugin-dbsearch": "4.0.7",
@ -114,7 +115,6 @@
"sitemap": "^6.1.0",
"socket.io": "2.3.0",
"socket.io-adapter-cluster": "^1.0.1",
"socket.io-adapter-mongo": "^2.0.5",
"socket.io-adapter-postgres": "^1.2.1",
"socket.io-client": "2.3.0",
"socket.io-redis": "5.3.0",

@ -167,7 +167,7 @@ mongoModule.close = function (callback) {
};
mongoModule.socketAdapter = function () {
const mongoAdapter = require('socket.io-adapter-mongo');
const mongoAdapter = require('@nodebb/socket.io-adapter-mongo');
return mongoAdapter(connection.getConnectionString());
};

Loading…
Cancel
Save