- 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 .
推薦閱讀
- Learning Cython Programming(Second Edition)
- 小創客玩轉圖形化編程
- 跟“龍哥”學C語言編程
- Practical Internet of Things Security
- GitLab Repository Management
- JavaScript 程序設計案例教程
- Mastering Drupal 8 Views
- 學習正則表達式
- jQuery Mobile移動應用開發實戰(第3版)
- OpenCV 3計算機視覺:Python語言實現(原書第2版)
- C++從入門到精通(第6版)
- 微前端設計與實現
- Python Automation Cookbook
- 游戲設計的底層邏輯
- 每個人的Python:數學、算法和游戲編程訓練營