- Web Development with MongoDB and Node(Third Edition)
- Bruno Joseph D'mello Mithun Satheesh Jason Krol
- 131字
- 2021-07-08 10:32:36
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 .
https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_client_applications .
推薦閱讀
- Spring Cloud Alibaba核心技術與實戰案例
- 零基礎學C++程序設計
- Learning Linux Binary Analysis
- Python Network Programming Cookbook(Second Edition)
- C++ 從入門到項目實踐(超值版)
- 信息技術應用基礎
- Android Native Development Kit Cookbook
- Keras深度學習實戰
- Python圖形化編程(微課版)
- Microsoft 365 Certified Fundamentals MS-900 Exam Guide
- Arduino可穿戴設備開發
- Python Machine Learning Blueprints:Intuitive data projects you can relate to
- HTML5+CSS3+JavaScript 從入門到項目實踐(超值版)
- 玩轉.NET Micro Framework移植:基于STM32F10x處理器
- Joomla!Search Engine Optimization