It's not straight forward though. different browsers implement this differently.
But you can do two things, use the offlineOnline browser api here
Ping a website you are sure will always be available such as Google in a http request. You can broadcast same event to other members saying the user is offline. That's it.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Does anybody knows how to setup friend online indicator for chat app?
You can start with the suggestion:
It's not straight forward though. different browsers implement this differently.
But you can do two things, use the offlineOnline browser api here
Ping a website you are sure will always be available such as Google in a http request. You can broadcast same event to other members saying the user is offline. That's it.