$json
content example :When you receive json data withuserid
equal to zero, means that you must reset your user's status in your database and therefore assign offline status to all your users.D'ont worry this will not affect presence status of your users since presence system will rebuild itself again in no time.🧐😉For example below how to do in PHP:
$data
content example :