Can the server access the client directly?

I have a small requirement in PHP as shown below. Some things like chat.

For example, there are 2 users A and B.

When "A" clicks on the "Chat" link. "B" should automatically get one javascript popup.

Is there any way to do this other than the following. - One JS script runs continuously with AJAX. I do not want to constantly interact with the client server.

Is there any way to directly send the browser status to the browser?

Thanks in advance.

+3
source share
3 answers

, Ajax Comet. , . Facebook .

+2

, ? XMPP? php.

0

( JavaScript AJAX) - Java-, . Java-, , , Java- Java, .

0

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


All Articles