Why I don't getting value from Server Method?

Hi,

I have little problem with Server Method. As you can see in provided screenshot I am getting respond ‘undefined’ from my Server Method Call.

What am I doing wrong here ?

SOLUTION:

Install:

$ meteor add simple:reactive-method

Template.vozdra.poz = function() {
var t = 'TEST: ’ + ReactiveMethod.call(‘test’);
return t;
};

Either that or you actually provide a callback function to Meteor.call()

If there’s no callback function the return value from the server simply gets thrown away.

2 Likes