cayasso / mongo-oplog

Watch mongodb oplog in a simple way
381 stars 91 forks source link

Add oplog.on('open', [fn]) #24

Closed kleysonr closed 9 years ago

kleysonr commented 9 years ago

As a developer, I would like to use mongo-oplog with Javascript Promise.

So, it's necessary a point to return a 'resolve()' when the mongodb connection is estabilished.

Then, is it possible add a oplog.on('open', [fn]) option ?

cayasso commented 9 years ago

@kleysonr Great idea!, I did some annotations to your PR, after those changes I will merge ;-)

cayasso commented 9 years ago

I explained the reason I am closing this in the pull request.