How can multiple clients be notified of individual user activities? Feeds

Let's say we have a web application where users go to their channel. And our server manages and maintains a list of users and their current IP addresses.

When someone logs in, is it possible for each client to receive a notification about this user? Similarly, if someone logs out, a similar notification will be generated. (Useful for maintaining a list of friends on the Internet).

IE: is it possible for the server to send a packet to each client or for the client machine (the guy who went in / out) to communicate with all other client computers.

Just look for thoughts on this. If you know a good framework for this type of functional identifier, who would like to hear about it. AJAX or jQuery spring, but are these technologies useful for this kind of thing?

Thanks guys...

+3
source share
3 answers

Yes. Comet is designed for this. Here is the jQuery plugin. And this answer may be helpful. Or you can simply ajax-poll the server at a given speed and it will make the changes.

. , ( , ). , . , "" ( ), .

+2

Kwwika - : http://kwwika.com/

", - ? KwwikTag. , - KwwikScreen ( API Kwwika), . , - ."

+2

, , . - node.js, HTTP- JavaScript, ( apache/etc, ). , - , , - ( , ).

A lengthy survey simply makes a request through Ajax to a server that does not respond until something happens (i.e. login) or timeout.

+2
source

Source: https://habr.com/ru/post/1764186/


All Articles