Search code examples
real-time-data

Realtime data in java web-based app


I'm coding a project discussion. My problem is when any member post comment to thread. That comment should be showed without reload page (As facebook). My PM does not allow me to use AJAX. So, please show what should I do to resolve this problem. Thank for help.


Solution

  • You have to choice to make realtime web-apps

    1. Websocket : Read more in https://developer.mozilla.org/en-US/docs/WebSockets
    2. Server-Sent event :https://developer.mozilla.org/en-US/docs/Server-sent_events/Using_server-sent_events