Data Push Apps with HTML5 SSE: Pragmatic Solutions for Real-World Clients (Paperback)

Darren Cook

  • 出版商: O'Reilly
  • 出版日期: 2014-05-06
  • 定價: $1,030
  • 售價: 8.0$824
  • 語言: 英文
  • 頁數: 222
  • 裝訂: Paperback
  • ISBN: 1449371930
  • ISBN-13: 9781449371937
  • 相關分類: HTML
  • 立即出貨

買這商品的人也買了...

商品描述

Make sure your website or web application users get content updates right now with minimal latency. This concise guide shows you how to push new data from the server to clients with HTML5 Server-Sent Events (SSE), an exceptional technology that doesn’t require constant polling or user interaction. You’ll learn how to build a real-world SSE application from start to finish that solves a demanding domain problem.

You’ll also discover how to increase that application’s desktop and mobile browser support from 60% to 99%, using different fallback solutions. If you’re familiar with HTML, HTTP, and basic JavaScript, you’re ready to get started.

  • Determine whether SSE, WebSockets, or data pull is best for your organization
  • Develop a working SSE application complete with backend and frontend solutions
  • Address error handling, system recovery, and other issues to make the application production-quality
  • Explore two fallback solutions for browsers that don’t support SSE
  • Tackle security issues, including authorization and "disallowed origin"
  • Develop realistic, repeatable data that’s useful in test-driven SSE design
  • Learn SSE protocol elements not covered in the example application

商品描述(中文翻譯)

確保您的網站或網路應用程式的使用者能夠立即獲得內容更新,並且延遲最小化。這本簡明指南將向您展示如何使用HTML5 Server-Sent Events(SSE)將新數據從伺服器推送到客戶端,這是一項非常出色的技術,不需要持續輪詢或使用者互動。您將學習如何從頭到尾建立一個真實的SSE應用程式,解決一個具有挑戰性的領域問題。

您還將發現如何使用不同的後備解決方案,將該應用程式在桌面和移動瀏覽器上的支援從60%提高到99%。如果您熟悉HTML、HTTP和基本的JavaScript,您就可以開始了。

本書內容包括:
- 確定SSE、WebSockets或數據拉取對於您的組織來說哪個是最佳選擇
- 開發一個完整的SSE應用程式,包括後端和前端解決方案
- 處理錯誤處理、系統恢復和其他問題,使應用程式達到生產質量
- 探索兩種不支援SSE的瀏覽器的後備解決方案
- 解決安全問題,包括授權和「不允許的來源」
- 開發在測試驅動的SSE設計中有用的逼真、可重複的數據
- 學習示例應用程式中未涵蓋的SSE協議元素