PHP live chat with ajax poll

I need to create a chat similar to facebook chat.

I am going to use an ajax poll (send a request every 2-3 seconds).

Is this a good approach? Or do I need to use other server languages ​​like erlang and server-comet?

+3
source share
2 answers

Or do I need to use other server languages

No - this is not relevant - the biggest problem is that HTTP does not support push notifications, so the language that you use on the web server practically does not matter.

comet server?

- , , push HTTP. , - , . Comet - :

1)

2)

. , , - - .

HTTP , . ActiveX, Java flash - - .

PHP javascript - - Naggle, , , /.

.

+2

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

. ( ). , , , , . , PHP .

0

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


All Articles