Skip to content

Commit 943287b

Browse files
committed
Merge pull request #6 from cwhitten/master
Allow clients to supply options to mubsub
2 parents 36cb6fc + dcea30b commit 943287b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ function adapter(uri, opts) {
6363
var key = opts.key || 'socket.io';
6464

6565
// init clients if needed
66-
if (!client) client = socket ? mubsub(socket) : mubsub('mongodb://' + creds + host + ':' + port + '/' + db);
66+
var uri = 'mongodb://' + creds + host + ':' + port + '/' + db
67+
if (!client) client = socket ? mubsub(socket) : mubsub(uri, opts);
6768

6869
// this server's key
6970
var uid = uid2(6);

0 commit comments

Comments
 (0)