DEV Community

Discussion on: Creating a realtime chat app with android , NodeJs and

medaymentn profile image
medaymenTN Author

i didn't say that node js can do everything but at least the implementation is very simple and there are a lot of features that you can add.
i'v tried to establish a socket server once in java and it was like hell but with node js i'v totally love doing it coz it was just less than 20 line of code and everything works like a charm

sandeepkamboj12 profile image
Sandeep kamboj

XMPP servers like OPENFIRE also totally built in java and provides much more functionality than node.js sockets.

Thread Thread
utkarshpro profile image
Utkarsh Srivastava

You can store messages in a database like redis and mark them unread and then serve them when the user logs back in. This is the approach I am using right now, let me know if something is wrong with this approach.