• Complain

Cook - Data push applications using HTML5 SSE: pragmatic solutions for real-world clients

Here you can read online Cook - Data push applications using HTML5 SSE: pragmatic solutions for real-world clients full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. City: Beijing, year: 2014, publisher: OReilly Media, genre: Romance novel. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Cook Data push applications using HTML5 SSE: pragmatic solutions for real-world clients
  • Book:
    Data push applications using HTML5 SSE: pragmatic solutions for real-world clients
  • Author:
  • Publisher:
    OReilly Media
  • Genre:
  • Year:
    2014
  • City:
    Beijing
  • Rating:
    4 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 80
    • 1
    • 2
    • 3
    • 4
    • 5

Data push applications using HTML5 SSE: pragmatic solutions for real-world clients: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Data push applications using HTML5 SSE: pragmatic solutions for real-world clients" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

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 doesnt require constant polling or user interaction. Youll learn how to build a real-world SSE application from start to finish that solves a demanding domain problem.

Youll also discover how to increase that applications desktop and mobile browser support from 60% to 99%, using different fallback solutions. If youre familiar with HTML, HTTP, and basic JavaScript, youre 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...
  • Cook: author's other books


    Who wrote Data push applications using HTML5 SSE: pragmatic solutions for real-world clients? Find out the surname, the name of the author of the book and a list of all author's works by series.

    Data push applications using HTML5 SSE: pragmatic solutions for real-world clients — read online for free the complete book (whole text) full work

    Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Data push applications using HTML5 SSE: pragmatic solutions for real-world clients" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

    Light

    Font size:

    Reset

    Interval:

    Bookmark:

    Make
    Data Push Apps with HTML5 SSE
    Darren Cook
    Preface

    The modern Web is a demanding place. You have to look good. You have to load fast. And you have to have good, relevant, interesting, up-to-date content. This book is about a technology to help with the second and third of those: making sure people using your website or web application are getting content that is bang up-to-date. Minimal latency, no compromises.

    This is also a book that cares about practical, real-world applications. Sure, . But the rest of the book is based around complete applications that dont shy away from the prickly echidnas that occupy the corner cases the real world will throw at us.

    The Kind of Person You Need to Be

    You need to be strong yet polite, passionate yet objective, and nice to children, the elderly, and Internet cats alike. However, this book is less demanding than real life. Im going to assume you know your HTML (HyperText Markup Language) from your HTTP (HyperText Transport Protocol), and that you also know the difference between HTML, CSS (Cascading Style Sheets), and JavaScript. To understand the client-side code you should at least be able to read and understand basic JavaScript. (When more complex JavaScript is used, it will be explained in a sidebar or appendix.)

    On the server side, the book has been kept as language-neutral as possible. Most code is introduced with simple PHP code, because PHP is quite short and expressive for this kind of application. As long as you know any C-like language you will have no trouble following along, but if you get stuck, please see also shows the example in Node.js. In later chapters, if the code gets a bit PHP-specific, I also show you how to do it in some other languages.

    Finally, to follow along with the examples it is assumed you have a web server such as Apache installed on your development machine. On many Linux systems it is already there, or very simple to install. For instance, on Ubuntu, sudo apt-get install lamp-server will install Apache, PHP, and MySQL in one easy step. On Windows, XAMPP is a similar all-in-one package that will give you everything you need. There is also a Mac version.

    Organization of This Book

    The core elements of SSE are not that complex: will give some background on HTML5, data push, potential applications, and alternative technologies.

    From also spends some time developing realistic, repeatable data that our sample application can push. Though not directly about SSE, it is a very useful demonstration of designing for testability in data push applications.

    , where all the security issues (cookies, authorization, CORS) that were glossed over in earlier chapters are finally covered.

    Conventions Used in This Book

    The following typographical conventions are used in this book:

    Italic

    Indicates new terms, URLs, email addresses, filenames, and file extensions.

    Constant width

    Used for program listings, as well as within paragraphs to refer to program elements such as variable or function names, databases, data types, environment variables, statements, and keywords.

    Constant width bold

    Shows commands or other text that should be typed literally by the user.

    Constant width italic

    Shows text that should be replaced with user-supplied values or by values determined by context.

    Tip

    This element signifies a tip or suggestion.

    Note

    This element signifies a general note.

    Caution

    This element indicates a warning or caution.

    Using Code Examples

    The source files used and referred to in the book are available for download at https://github.com/DarrenCook/ssebook.

    This book is here to help you get your job done. In general, if example code is offered with this book, you may use it in your programs and documentation. You do not need to contact us for permission unless youre reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from this book does not require permission. Selling or distributing a CD-ROM of examples from OReilly books does require permission. Answering a question by citing this book and quoting example code does not require permission. Incorporating a significant amount of example code from this book into your products documentation does require permission.

    We appreciate, but do not require, attribution. An attribution usually includes the title, author, publisher, and ISBN. For example: Data Push Apps with HTML5 SSE by Darren Cook (OReilly). Copyright 2014 Darren Cook, 978-1-449-37193-7.

    If you feel your use of code examples falls outside fair use or the permission given above, feel free to contact us at .

    Safari Books Online
    Note

    Safari Books Online (www.safaribooksonline.com) is an on-demand digital library that delivers expert content in both book and video form from the worlds leading authors in technology and business.

    Technology professionals, software developers, web designers, and business and creative professionals use Safari Books Online as their primary resource for research, problem solving, learning, and certification training.

    Safari Books Online offers a range of product mixes and pricing programs for organizations, government agencies, and individuals. Subscribers have access to thousands of books, training videos, and prepublication manuscripts in one fully searchable database from publishers like OReilly Media, Prentice Hall Professional, Addison-Wesley Professional, Microsoft Press, Sams, Que, Peachpit Press, Focal Press, Cisco Press, John Wiley & Sons, Syngress, Morgan Kaufmann, IBM Redbooks, Packt, Adobe Press, FT Press, Apress, Manning, New Riders, McGraw-Hill, Jones & Bartlett, Course Technology, and dozens more. For more information about Safari Books Online, please visit us online.

    How to Contact Us

    Please address comments and questions concerning this book to the publisher:

    OReilly Media, Inc.
    1005 Gravenstein Highway North
    Sebastopol, CA 95472
    800-998-9938 (in the United States or Canada)
    707-829-0515 (international or local)
    707-829-0104 (fax)

    We have a web page for this book, where we list errata, examples, and any additional information. You can access this page at http://oreil.ly/data-push-apps-html5-sse.

    To comment or ask technical questions about this book, send email to .

    For more information about our books, courses, conferences, and news, see our website at http://www.oreilly.com.

    Find us on Facebook: http://facebook.com/oreilly

    Follow us on Twitter: http://twitter.com/oreillymedia

    Watch us on YouTube: http://www.youtube.com/oreillymedia

    Chapter 1. All About SSE...And Then Some

    SSE stands for Server-Sent Events and it is an HTML5 technology to allow the server to push fresh data to clients. It is a superior solution to having the client poll for new data every few seconds. At the time of writing it is supported natively by 65% of desktop and mobile browsers, but in this book I will show how to develop fallback solutions that allow us to support more than 99% of desktop and mobile users. By the way, 10 years ago I used Flash exclusively for this kind of data push; things have evolved such that nothing in this book uses Flash.

    Note

    The browser percentages in this book come from the wonderful Can I Use website. It, in turn, gets its numbers from StatCounter GlobalStats. And, to preempt the pedants, when I say more than 99% I really mean it works on every desktop or mobile browser Ive been able to lay my hands on. Please forgive me if that doesnt turn out to be exactly 99% of your users.

    Next page
    Light

    Font size:

    Reset

    Interval:

    Bookmark:

    Make

    Similar books «Data push applications using HTML5 SSE: pragmatic solutions for real-world clients»

    Look at similar books to Data push applications using HTML5 SSE: pragmatic solutions for real-world clients. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


    Reviews about «Data push applications using HTML5 SSE: pragmatic solutions for real-world clients»

    Discussion, reviews of the book Data push applications using HTML5 SSE: pragmatic solutions for real-world clients and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.