Closed kubat closed 9 years ago
Sorry for the delay, a bit swamped right now, but will look at this (and the other) soon. Thx!
Worth noting that in Meteor, observe is a function of Mongo.Cursor not Mongo.Collection.
@kubat sorry for the delay in looking at this. The changes look good but I'm concerned there's no tests. I know the test coverage isn't good, but decreasing coverage I'm not interested in. If you add tests, I'll merge (quickly :) )
Hi. Added the requested test and made some linting changes.
Thanks, merged!
Collections can now be observerd with callbacks by calling
client.observe(collectionName,...)
. This returns an observer object that can have methods attached to it for additions, removals and updates. Those callbacks are called immediately on DDP messages. The observation can be stopped with a call tostop()
.