Answer the question
In order to leave comments, you need to log in
Interaction between users using jquery ajax - is it possible?
Is it possible to implement interaction between users using Jquery ajax?
Two users are authorized on the site, one of them makes a change to the database, which they have access to at the same time (for example: the contents of which are open in both - they see the same data at the same time), it is necessary that the second user after saving this data, without reloading the page - saw them!
Is it possible to do this on Jquery ajax ? Or do you need some other technology?
Answer the question
In order to leave comments, you need to log in
If you need Ajax directly, then welcome to javascript.ru/ajax/comet/long-poll
BUT it's much better to do as Nikolai Petyukh advises and take websockets.
Yes, you can. Google long polling. However, real-time interaction is more a server issue than a frontend. In my opinion, a bunch of WebSockets + NodeJS looks promising in this matter. As a database, RethinkDB looks interesting with the ability to immediately return information about the added data.
In my opinion, a bunch of web sockets (transport) and rethinkdb (base) are ideal for the task
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question