{"action":"opened","issue":{"url":"https://api.github.com/repos/mnmtanish/meteor-call/issues/1","labels_url":"https://api.github.com/repos/mnmtanish/meteor-call/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/mnmtanish/meteor-call/issues/1/comments","events_url":"https://api.github.com/repos/mnmtanish/meteor-call/issues/1/events","html_url":"https://github.com/mnmtanish/meteor-call/issues/1","id":97827922,"number":1,"title":"Need double click to get result","user":{"login":"ralphievolt","id":5282658,"avatar_url":"https://avatars.githubusercontent.com/u/5282658?v=3","gravatar_id":"","url":"https://api.github.com/users/ralphievolt","html_url":"https://github.com/ralphievolt","followers_url":"https://api.github.com/users/ralphievolt/followers","following_url":"https://api.github.com/users/ralphievolt/following{/other_user}","gists_url":"https://api.github.com/users/ralphievolt/gists{/gist_id}","starred_url":"https://api.github.com/users/ralphievolt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralphievolt/subscriptions","organizations_url":"https://api.github.com/users/ralphievolt/orgs","repos_url":"https://api.github.com/users/ralphievolt/repos","events_url":"https://api.github.com/users/ralphievolt/events{/privacy}","received_events_url":"https://api.github.com/users/ralphievolt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-29T00:15:38Z","updated_at":"2015-07-29T00:15:38Z","closed_at":null,"body":"Hi, I am trying to convert this code using the \"Call\" package\r\n\r\n     Template.body.onCreated( function() {\r\n        Meteor.call(\"checkIP\", function(error, result) {\r\n         if(error) {\r\n           bootbox.alert(\"error\", error);\r\n         }\r\n       else\r\n         console.log(result);\r\n        });\r\n      });'\r\n\r\nand this is my code is the server\r\n\r\n    checkIP: function() {\r\n      var ip = this.connection.clientAddress;\r\n      console.log(ip + \" access on \" + moment().format(\"MMM-D-YYYY, h:mm:ss a\"));\r\n      return ip\r\n    }\r\nEverything seems to run fine wowever when I use your \"Call\" package\" I always get an undefined and I need to click it again in order to the result ip"}}