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

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 .
主站蜘蛛池模板: 庆安县| 桃源县| 靖宇县| 伊金霍洛旗| 格尔木市| 大英县| 阜宁县| 曲麻莱县| 京山县| 哈巴河县| 义马市| 沾益县| 茶陵县| 阿勒泰市| 芜湖县| 正宁县| 临城县| 将乐县| 郴州市| 锡林浩特市| 罗平县| 徐汇区| 浮梁县| 汨罗市| 青海省| 邮箱| 科技| 班玛县| 贡嘎县| 揭东县| 清丰县| 钟山县| 宝应县| 彰化县| 泉州市| 丰都县| 玉门市| 霞浦县| 科技| 遵义市| 酉阳|