java - How do I implement online/offline feature with REST based application? -


i building chat feature(web application) in user has list of friends can chat with. friends can online or offline, in facebook. since, application built on rest apis, don't save session , of authentication stateless.

so question is, how know online or offline among list? best way implement this?

usually chat applications send message client server after set time period, if message not received, user offline.

i not java developer, suggest websockets chat. hope helps.


Comments

Popular posts from this blog

symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -

angular ui router - 10 digest iterations reached in angularjs when using $state.go -

javascript - Handling constructor related functions while testing with mocha and sinon -