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

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 .
主站蜘蛛池模板: 云浮市| 三明市| 大足县| 古交市| 彰武县| 灵寿县| 富川| 通海县| 绥棱县| 庆城县| 卫辉市| 游戏| 遂宁市| 鸡西市| 青河县| 株洲县| 方山县| 三亚市| 黑龙江省| 手机| 柘荣县| 思茅市| 棋牌| 旅游| 娱乐| 宁安市| 宁南县| 和顺县| 千阳县| 康保县| 云林县| 通道| 钟山县| 龙山县| 郴州市| 锦屏县| 靖远县| 湘西| 云林县| 南部县| 永新县|