Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection should emit on events #18

Closed
cmoesel opened this issue Jan 8, 2014 · 1 comment
Closed

Connection should emit on events #18

cmoesel opened this issue Jan 8, 2014 · 1 comment

Comments

@cmoesel
Copy link

cmoesel commented Jan 8, 2014

According to the API docs for Connection, the connection object should emit a number of events. A few important ones to consider supporting are 'open' and 'error', since some applications may wait for one of these events before proceeding.

var connection = mongoose.createConnection(mongoUrl);
connection.on('open', function() { console.log('OPEN!'); });
connection.on('error', function() { console.log('ERROR!'); });
mccormicka pushed a commit that referenced this issue Jan 11, 2014
Added Connection Events for issue #18 according to http://mongoosejs.com/docs/api.html#connection_Connection
Supported Events
@mccormicka
Copy link
Owner

Added events please see readme update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants