{"action":"created","issue":{"url":"https://api.github.com/repos/mgp25/Chat-API/issues/663","labels_url":"https://api.github.com/repos/mgp25/Chat-API/issues/663/labels{/name}","comments_url":"https://api.github.com/repos/mgp25/Chat-API/issues/663/comments","events_url":"https://api.github.com/repos/mgp25/Chat-API/issues/663/events","html_url":"https://github.com/mgp25/Chat-API/issues/663","id":72214440,"number":663,"title":"I'm having trouble with eventManager someone help me?","user":{"login":"Pudins","id":10384185,"avatar_url":"https://avatars.githubusercontent.com/u/10384185?v=3","gravatar_id":"","url":"https://api.github.com/users/Pudins","html_url":"https://github.com/Pudins","followers_url":"https://api.github.com/users/Pudins/followers","following_url":"https://api.github.com/users/Pudins/following{/other_user}","gists_url":"https://api.github.com/users/Pudins/gists{/gist_id}","starred_url":"https://api.github.com/users/Pudins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pudins/subscriptions","organizations_url":"https://api.github.com/users/Pudins/orgs","repos_url":"https://api.github.com/users/Pudins/repos","events_url":"https://api.github.com/users/Pudins/events{/privacy}","received_events_url":"https://api.github.com/users/Pudins/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-30T16:32:59Z","updated_at":"2015-04-30T16:33:52Z","closed_at":null,"body":"The fact is I am trying to do so without success:\r\n\r\n$w->eventManager()->bind(\"onGetMessage\",\"sendMsg\");\r\n\r\nfunction sendMSG($mynumber, $from, $id, $type, $time, $name, $body)\r\n{\r\n    $username = \"****************\";\r\n    $password = \"********************\";\r\n    $nickname = \"**SharkTalks**\";\r\n    $debug = false;\r\n    $w = new WhatsProt($username, $nickname, $debug);\r\n    $w->sendMessage($from, \"Hello I'm busy, as I talk to you! - \" . date('H:i'));\r\n\r\n}\r\n\r\nTo run this code it returns me this error:\r\n\r\nPHP Fatal error:  Uncaught exception 'ConnectionException' with message 'Connection Closed!' in /home/ubuntu/Chat-API-master/src/whatsprot.class.php:548\r\nStack trace:\r\n#0 /home/ubuntu/Chat-API-master/src/whatsprot.class.php(1959): WhatsProt->pollMessage()\r\n#1 /home/ubuntu/Chat-API-master/src/whatsprot.class.php(3764): WhatsProt->waitForServer('-1')\r\n#2 /home/ubuntu/Chat-API-master/src/whatsprot.class.php(1490): WhatsProt->sendMessageNode('***************@s....', Object(ProtocolNode), NULL)\r\n\r\nI thank you for your help and for your time!"},"comment":{"url":"https://api.github.com/repos/mgp25/Chat-API/issues/comments/97871035","html_url":"https://github.com/mgp25/Chat-API/issues/663#issuecomment-97871035","issue_url":"https://api.github.com/repos/mgp25/Chat-API/issues/663","id":97871035,"user":{"login":"CODeRUS","id":720601,"avatar_url":"https://avatars.githubusercontent.com/u/720601?v=3","gravatar_id":"","url":"https://api.github.com/users/CODeRUS","html_url":"https://github.com/CODeRUS","followers_url":"https://api.github.com/users/CODeRUS/followers","following_url":"https://api.github.com/users/CODeRUS/following{/other_user}","gists_url":"https://api.github.com/users/CODeRUS/gists{/gist_id}","starred_url":"https://api.github.com/users/CODeRUS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CODeRUS/subscriptions","organizations_url":"https://api.github.com/users/CODeRUS/orgs","repos_url":"https://api.github.com/users/CODeRUS/repos","events_url":"https://api.github.com/users/CODeRUS/events{/privacy}","received_events_url":"https://api.github.com/users/CODeRUS/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T16:33:52Z","updated_at":"2015-04-30T16:33:52Z","body":"Connection closed by server. Show your debug log."}}