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

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 .
主站蜘蛛池模板: 浦县| 临汾市| 汾西县| 三门县| 浮山县| 西乌| 芮城县| 锡林郭勒盟| 淮滨县| 彭泽县| 额尔古纳市| 大同县| 普安县| 利辛县| 玛纳斯县| 阳江市| 抚松县| 荃湾区| 东阿县| 迁西县| 璧山县| 翁牛特旗| 常德市| 牙克石市| 绩溪县| 满洲里市| 高淳县| 平阴县| 湛江市| 璧山县| 特克斯县| 景宁| 化隆| 乌恰县| 承德市| 西藏| 府谷县| 和田县| 五家渠市| 江川县| 昌宁县|