-
Notifications
You must be signed in to change notification settings - Fork 139
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
Monkey patch DDP callbacks to bubble up errors to Cucumber #1
Comments
I'd like to see a promise version of ddp.call and ddp.apply. So you don't pass a callback at all. E.g. ` this.ddp.callAsync('updateTitle', [title])
.then(function () {
// Do something else
})
.then(callback, callback) // If Cucumber supports Promises this can be removed |
Would the newer DDP client from @pscanf (author of Asteroid) be a better choice than the fork of the old oortcloud one? |
Oh nice find. Didn't know about this one. I've always disliked the DDP client we currently use and this new one has tests which is nice. I think with the sync version this problem has gone away (pending testing). I'll keep this issue open until we decide if it's worth switching to DDP.js |
We have solved this issue by forking the ddp npm package. https://github.com/mondora/ddp.js only provides the lower level DDP API. So we would need to create the high level API that Meteor provides on top of it. Because our current DDP package seems to work well, I don't see a reason for it right now. |
currently you have to write:
This would be much cleaner this way:
And can be achieved by monkey-patching
global.ddp.call
The text was updated successfully, but these errors were encountered: