I am interested to connect to a mongodb database hosted on mms using mongojs module. If one database instance fails, mms will make one of the other database instances to become primary.But is IP address changes. How the server application where blocking timeouts are not allowed should be able to automatically connect to rest of available database instances. I am looking for something like
var db = require('mongojs').connect(url1,url2,url3);