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

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -