dimanche 21 juin 2015

Java EE notify user when he receives request from another user

this is my second time that I post a question in here, so if I'm breaking any rules, please forgive me.

I have a web project that i need to notify user when he receives a request from another user, something like Facebook notification.

can anybody guide me how can i do that?

I have read about websocket but I've couldn't figure it out completely.

  1. First of all, I do not want that every refresh to kill the current socket and create a new socket.

  2. Another thing is that I've couldn't figure out in websocket, is how to send a message from the server with out the client to send a message.

Can you please give me some tutorial\example of something similar?

Aucun commentaire:

Enregistrer un commentaire