官术网_书友最值得收藏!

Real-time web application with Socket.io

One of the important reasons behind the origin of Node.js was to support real-time web applications. Node.js has a couple of frameworks built for real-time web applications which are hugely popular: Socket.io and Sock.JS. These frameworks make it very simple to build instant, collaboration-based applications such as Google Drive and Mozilla's together.js. Before the introduction of WebSockets in the modern browsers, this was achieved via long polling, which was not a great solution for real-time experience. While WebSockets is a feature that is only supported in modern browsers, Socket.io acts as a framework, which also features seamless fallback implementations for legacy browsers.

If you need to understand more on the use of WebSockets in applications, here's a good resource on MDN that you can explore:
https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_client_applications .
主站蜘蛛池模板: 武义县| 井陉县| 康平县| 崇信县| 右玉县| 蓬溪县| 葫芦岛市| 兰坪| 嘉兴市| 尤溪县| 开阳县| 长汀县| 宁强县| 凭祥市| 西和县| 合山市| 霸州市| 丰台区| 汾阳市| 清涧县| 平遥县| 襄城县| 南陵县| 通州市| 尉氏县| 原阳县| 清徐县| 惠来县| 长子县| 措勤县| 苏尼特左旗| 云林县| 青州市| 沧州市| 河间市| 博白县| 合作市| 康马县| 十堰市| 朝阳县| 余干县|