{"action":"opened","issue":{"url":"https://api.github.com/repos/huangguozhen/paho.mqtt.js/issues/2","repository_url":"https://api.github.com/repos/huangguozhen/paho.mqtt.js","labels_url":"https://api.github.com/repos/huangguozhen/paho.mqtt.js/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/huangguozhen/paho.mqtt.js/issues/2/comments","events_url":"https://api.github.com/repos/huangguozhen/paho.mqtt.js/issues/2/events","html_url":"https://github.com/huangguozhen/paho.mqtt.js/issues/2","id":216390508,"number":2,"title":"PahoMQTT Client Issue in node.js","user":{"login":"NidhaanTandava","id":10285540,"avatar_url":"https://avatars0.githubusercontent.com/u/10285540?v=3","gravatar_id":"","url":"https://api.github.com/users/NidhaanTandava","html_url":"https://github.com/NidhaanTandava","followers_url":"https://api.github.com/users/NidhaanTandava/followers","following_url":"https://api.github.com/users/NidhaanTandava/following{/other_user}","gists_url":"https://api.github.com/users/NidhaanTandava/gists{/gist_id}","starred_url":"https://api.github.com/users/NidhaanTandava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NidhaanTandava/subscriptions","organizations_url":"https://api.github.com/users/NidhaanTandava/orgs","repos_url":"https://api.github.com/users/NidhaanTandava/repos","events_url":"https://api.github.com/users/NidhaanTandava/events{/privacy}","received_events_url":"https://api.github.com/users/NidhaanTandava/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-23T11:02:41Z","updated_at":"2017-03-23T11:02:41Z","closed_at":null,"body":"Hi,\r\n\r\nWhile trying to use the module for a nodejs program, I am getting the following error:\r\nvar client = new PahoMQTT.client(\"xxx.yyy.com\", 443, \"/xyendpoint\", \"clientId\");\r\n             ^\r\n\r\nTypeError: PahoMQTT.client is not a function\r\n    at Object.<anonymous> (C:\\Workplace\\Codes\\nodecodes\\mqttclient\\index.js:2:14)\r\n    at Module._compile (module.js:397:26)\r\n    at Object.Module._extensions..js (module.js:404:10)\r\n    at Module.load (module.js:343:32)\r\n    at Function.Module._load (module.js:300:12)\r\n    at Function.Module.runMain (module.js:429:10)\r\n    at startup (node.js:139:18)\r\n    at node.js:999:3\r\n\r\nCould you kindly give me guidance on how to resolve this issue.\r\n\r\nThanks & Regards,\r\nHarish"}}
{"actor":{"display_login":"NidhaanTandava"}}