Cook D. - Data Push Apps with HTML5 SSE

Скачать

Cook D. - Data Push Apps with HTML5 SSE

Data Push Apps with HTML5 SSE

Год: 2014

Автор: Darren Cook

Издательство: O'Reilly Media

ISBN: Print ISBN:978-1-4493-7193-7; Ebook ISBN:978-1-4493-7188-3

Язык: Английский

Формат: PDF/EPUB

Качество: Изначально компьютерное (eBook)

Интерактивное оглавление: Да

Количество страниц: 221

Описание: 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

Chapter 1. All About SSE…And Then Some

Chapter 2. Super Simple Easy SSE

Chapter 3. A Delightfully Realistic Data Push Application

Chapter 4. Living in More Than the Present Moment

Chapter 5. No More Ivory Tower: Making Our Application Production-Quality

Chapter 6. Fallbacks: Data Push for Everyone Else

Chapter 7. Fallbacks: There Has to Be a Better Way!

Chapter 8. More SSE: The Rest of the Standard

Chapter 9. Authorization: Who’s That Knocking at My Door?

Appendix A. The SSE Standard

Appendix B. Refactor: JavaScript Globals, Objects, and Closures

Appendix C. PHP

Скачать