Monday, 15 September 2014

List Meteor methods registered with Meteor.methods()? -


If there was a way to get the list of current registered Meteor.methods, then be surprised.

For example, if a post method is registered like this:

  Meteor.methods ({post: function ()} {// code}});   

Is there a way to access the list of these methods? Ideally this would be done through a method, but if it was stored in the aforementioned variable like meteorology, which works.

I've worked through the documentation in the browser and meteorite global but I find anything useful to any ideas?

On the client, you can:

  meteor .connection ._methodHandlers   

This gives you a dictionary of function names of tasks.

No comments:

Post a Comment