https://github.com/gwendall/meteor-callbacks
Global handlers for Meteor.call callbacks on the client-side
https://github.com/gwendall/meteor-callbacks
Last synced: 2 months ago
JSON representation
Global handlers for Meteor.call callbacks on the client-side
- Host: GitHub
- URL: https://github.com/gwendall/meteor-callbacks
- Owner: gwendall
- Created: 2014-12-20T16:00:58.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-20T16:34:35.000Z (over 10 years ago)
- Last Synced: 2025-03-18T05:56:56.150Z (3 months ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Meteor Callbacks
=================Global callback for Meteor.call on the client-side.
Installation
------------``` sh
meteor add gwendall:callbacks
```How to use
----------**Callbacks.onCall**
Defines the global callback. It doesn't hijack the callbacks you may have declared when calling Meteor.call. They will just execute as expected.Example:
```javascript
Callbacks.onCall = function(err, res) {
console.log("Logs err, res for all your Meteor.call's!");
});
```
To do
------ Catch Mongo operations (insert, update, etc.) callbacks.