venomous0x / WhatsAPI

Interface to WhatsApp Messenger
2.59k stars 2.14k forks source link

online status #1174

Open shivaburade opened 8 years ago

shivaburade commented 8 years ago

i am using the whatsapp api i want a user to show online but it is not happening when i reload the php script it shows me online for 2-secs but after that is goes offline how to keep user online ?

i searched the api documentation i found two functions- 1) sendActiveStatus() 2)sendping() which one should be used and where ?

one alternative solution it to make ajax call to api regularly after 1 secs is there any other solution i mean using some function?