Variable to server from client

I basically want to do this… I thought a Meteor.method? but how would I go about that…? Thanks for help.

if(Meteor.isClient) {
var clientVar = getElementById("someId").value ;

}

if(Meteor.isServer) {
HTTP.call( 'GET', 'http://someurl.com/' + devId + '/' + '/' + utcTimestamp + '/' + 'clientVar', {
}, function( error, response ) {
  if ( error ) {
    future.return( error );
  } else {
    future.return( response ); 
 }

});
}

Check out this Meteor Guide article on methods

1 Like

Thanks for the link!