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?
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?