What are Long-Polling, Websockets, Server-Sent Events (SSE) and Comet?

前端 未结 4 1295
后悔当初
后悔当初 2020-11-21 06:51

I have tried reading some articles, but I am not very clear on the concepts yet.

Would someone like to take a shot at explaining to me what these technologies are:

4条回答
  •  感情败类
    2020-11-21 07:19

    You can easily use Node.JS in your web app only for real-time communication. Node.JS is really powerful when it's about WebSockets. Therefore "PHP Notifications via Node.js" would be a great concept.

    See this example: Creating a Real-Time Chat App with PHP and Node.js

提交回复
热议问题