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

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 .
主站蜘蛛池模板: 沁阳市| 腾冲县| 侯马市| 偏关县| 化德县| 邹城市| 永泰县| 同心县| 兰坪| 高陵县| 广德县| 驻马店市| 永和县| 全椒县| 周口市| 天气| 扶余县| 泗水县| 峨眉山市| 辽阳县| 娱乐| 大埔区| 交城县| 交城县| 卢湾区| 阜阳市| 尚志市| 曲阜市| 丰顺县| 思南县| 东兰县| 吉安县| 大安市| 静宁县| 囊谦县| 尤溪县| 翁牛特旗| 合阳县| 上饶县| 宜州市| 阿克陶县|