We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 36cb6fc + dcea30b commit 943287bCopy full SHA for 943287b
index.js
@@ -63,7 +63,8 @@ function adapter(uri, opts) {
63
var key = opts.key || 'socket.io';
64
65
// init clients if needed
66
- if (!client) client = socket ? mubsub(socket) : mubsub('mongodb://' + creds + host + ':' + port + '/' + db);
+ var uri = 'mongodb://' + creds + host + ':' + port + '/' + db
67
+ if (!client) client = socket ? mubsub(socket) : mubsub(uri, opts);
68
69
// this server's key
70
var uid = uid2(6);
0 commit comments