{"action":"created","issue":{"url":"https://api.github.com/repos/WHAnonymous/Chat-API/issues/1083","labels_url":"https://api.github.com/repos/WHAnonymous/Chat-API/issues/1083/labels{/name}","comments_url":"https://api.github.com/repos/WHAnonymous/Chat-API/issues/1083/comments","events_url":"https://api.github.com/repos/WHAnonymous/Chat-API/issues/1083/events","html_url":"https://github.com/WHAnonymous/Chat-API/issues/1083","id":111339356,"number":1083,"title":"Not getting last seen Value ","user":{"login":"tauseefahmed","id":13610158,"avatar_url":"https://avatars.githubusercontent.com/u/13610158?v=3","gravatar_id":"","url":"https://api.github.com/users/tauseefahmed","html_url":"https://github.com/tauseefahmed","followers_url":"https://api.github.com/users/tauseefahmed/followers","following_url":"https://api.github.com/users/tauseefahmed/following{/other_user}","gists_url":"https://api.github.com/users/tauseefahmed/gists{/gist_id}","starred_url":"https://api.github.com/users/tauseefahmed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tauseefahmed/subscriptions","organizations_url":"https://api.github.com/users/tauseefahmed/orgs","repos_url":"https://api.github.com/users/tauseefahmed/repos","events_url":"https://api.github.com/users/tauseefahmed/events{/privacy}","received_events_url":"https://api.github.com/users/tauseefahmed/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-14T07:18:53Z","updated_at":"2015-10-14T07:25:05Z","closed_at":"2015-10-14T07:23:59Z","body":"here is my code \r\n```php\r\n<?php\r\nerror_reporting(E_ALL); ini_set('display_errors', '1');\r\ndate_default_timezone_set('Europe/Madrid');\r\nrequire_once('../src/whatsprot.class.php');\r\nrequire_once('../src/events/MyEvents.php');\r\n\r\npublic function onPresenceUnavailable( $mynumber, $from, $last )\r\n{\r\n  echo \"Last seen of $id: \".gmdate(\"H:i:s\", $last);\r\n}\r\n\r\nfunction  onConnect( $mynumber, $socket ) { echo \" $mynumber\".\"is connected\";}\r\n$w = new WhatsProt(\"xxxxxx\", \"Seefi\", true);\r\n$events = new MyEvents($w);\r\n$events->setEventsToListenFor($events->activeEvents);\r\n$w->connect();\r\n$w->loginWithPassword(\"xxxxxx\");\r\n$w->sendPresenceSubscription(\"xxxxxxxx\");\r\n?>\r\n```\r\nand here is debug log \r\n```xml\r\ntx  <stream:features>\r\ntx    <readreceipts></readreceipts>\r\ntx    <groups_v2></groups_v2>\r\ntx    <privacy></privacy>\r\ntx    <presence></presence>\r\ntx  </stream:features>\r\n\r\ntx  <auth mechanism=\"WAUTH-2\" user=\"xxxxxx\">GF-6923465136486G¨3¼”W)+\u000Fk9\u0010nŽ€Óã[×¬1444806690</auth>\r\n\r\nrx  <start from=\"s.whatsapp.net\"></start>\r\n\r\nrx  <stream:features></stream:features>\r\n\r\nrx  <challenge>\"ÙÒ\u0016!]Ø´\"Øyî„¿wÑ\u0004\u0006Ê</challenge>\r\n\r\ntx  <response>ö\u0003”KªÏ¡n\b\u001B¼ìeµøÎ\\k¸ði¨B\fèT\u0017‰ö+\u001FÓ:g</response>\r\n\r\nrx  <success t=\"1444806680\" props=\"4\" kind=\"free\" status=\"active\" creation=\"1423376396\" expiration=\"1454912396\">ÏUS›\u0013lø8îIùøâtÿ6²®\u0011</success>\r\n\r\ntx  <presence name=\"Seefi\"></presence>\r\n\r\ntx  <presence type=\"subscribe\" to=\"xxxxx@s.whatsapp.net\"></presence>\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/WHAnonymous/Chat-API/issues/comments/147960871","html_url":"https://github.com/WHAnonymous/Chat-API/issues/1083#issuecomment-147960871","issue_url":"https://api.github.com/repos/WHAnonymous/Chat-API/issues/1083","id":147960871,"user":{"login":"tauseefahmed","id":13610158,"avatar_url":"https://avatars.githubusercontent.com/u/13610158?v=3","gravatar_id":"","url":"https://api.github.com/users/tauseefahmed","html_url":"https://github.com/tauseefahmed","followers_url":"https://api.github.com/users/tauseefahmed/followers","following_url":"https://api.github.com/users/tauseefahmed/following{/other_user}","gists_url":"https://api.github.com/users/tauseefahmed/gists{/gist_id}","starred_url":"https://api.github.com/users/tauseefahmed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tauseefahmed/subscriptions","organizations_url":"https://api.github.com/users/tauseefahmed/orgs","repos_url":"https://api.github.com/users/tauseefahmed/repos","events_url":"https://api.github.com/users/tauseefahmed/events{/privacy}","received_events_url":"https://api.github.com/users/tauseefahmed/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T07:25:05Z","updated_at":"2015-10-14T07:25:05Z","body":"i did not used any disconnect function how can i avoid that ??"}}