mongo
Opened this issue · 1 comments
guyi0 commented
I keep getting :
MongoError: not authorized on admin to execute command { create: "test", capped: true, size: 10485760, max: 10000 }
this is what i have so far:
var mosca = require('mosca')
var pubsubsettings = {
type: 'mongo',
url: 'mongodb+srv://guyi:*******@cluster0-gzot4.mongodb.net/test',
pubsubCollection: 'test',
mongo: {
}
};
var moscaSettings = {
port: 1883,
backend: pubsubsettings
};
var server = new mosca.Server(moscaSettings);
server.on('ready', setup);
function setup() {
console.log('Mosca server is up and running')
}
Any way to solve this ?
tnx
KennyDizi commented
same here!