- 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 .
推薦閱讀
- UNIX編程藝術
- Java面向對象軟件開發
- Oracle數據庫從入門到運維實戰
- Java:Data Science Made Easy
- Mastering Drupal 8 Views
- Mastering Apache Maven 3
- 運用后端技術處理業務邏輯(藍橋杯軟件大賽培訓教材-Java方向)
- Service Mesh實戰:基于Linkerd和Kubernetes的微服務實踐
- Test-Driven Machine Learning
- 軟件供應鏈安全:源代碼缺陷實例剖析
- 智能手機APP UI設計與應用任務教程
- Learning Ionic
- Java EE Web應用開發基礎
- Java EE 8 and Angular
- 軟件測試技術