How to make a simple http request in Meteor from client to server
问题 I'm using Meteor for first time and i'm trying to have a simple http call within a method so i can call this method from the client. The problem is that this async call it's keep running even if i put it within a wrapper. Client side: Meteor.call('getToken', function(error, results) { console.log('entered'); if(error) { console.log(error); } else { console.log(results); } }); Server Side Meteor.methods({ getToken: function(){ // App url var appUrl = 'myAppUrl'; // Key credentials var apiKey =