Cover image for Getting Started with HTML5 WebSocket Programming.
Getting Started with HTML5 WebSocket Programming.
Title:
Getting Started with HTML5 WebSocket Programming.
Author:
Pterneas, Vangos.
ISBN:
9781782166979
Personal Author:
Physical Description:
1 online resource (136 pages)
Contents:
Getting Started with HTML5 WebSocket Programming -- Table of Contents -- Getting Started with HTML5 WebSocket Programming -- Credits -- About the Author -- About the Reviewers -- www.PacktPub.com -- Support files, eBooks, discount offers and more -- Why Subscribe? -- Free Access for Packt account holders -- Preface -- What this book covers -- What you need for this book -- Who this book is for -- Conventions -- Reader feedback -- Customer support -- Downloading the example code -- Errata -- Piracy -- Questions -- 1. WebSocket - a Handshake! -- Life before WebSocket -- Polling -- Long polling -- Streaming -- Postback and AJAX -- Then came HTML5 -- The WebSocket protocol -- The URL -- Browser support -- Who's using WebSockets -- Mobile? -- The future is now -- What are we going to make? -- Summary -- 2. The WebSocket API -- HTML5 basics -- Markup -- Styling -- Logic -- A chatting application -- API overview -- Browser support -- The WebSocket object -- Events -- onopen -- onmessage -- onclose -- onerror -- Actions -- send() -- close() -- Properties -- The complete example -- index.html -- chat.js -- What about the server? -- Summary -- 3. Configuring the Server -- Why do I need a WebSocket server? -- Setting up the server -- Selecting the technology that suits you -- C/C++ -- Java -- .NET -- PHP -- Python -- Ruby -- JavaScript -- Setting up the development environment -- Connecting to the web server -- Creating the WebSocket server instance -- Open -- Close -- Message -- Send -- Other methods -- The complete source code -- Summary -- 4. Data Transfer - Sending, Receiving, and Decoding -- What kinds of data can WebSockets transfer? -- String -- JSON -- XML -- ArrayBuffer -- Blobs -- Video streaming -- Putting it all together -- Sending the nickname and message using JSON -- Sending images to the server -- Summary -- 5. Security -- WebSocket headers.

Common attacks -- Denial of Service -- Man-in-the-middle -- XSS -- WebSocket native defence mechanisms -- SSH/TLS -- Client-to-Server masking -- Security toolbox -- Fiddler -- Wireshark -- Browser developer tools -- ZAP -- Summary -- 6. Error Handling and Fallbacks -- Error handling -- Checking network availability -- Fallback solutions -- JavaScript polyfills -- Popular polyfills -- Browser plugins -- Summary -- 7. Going Mobile (and Tablet, Too) -- Why mobile matters -- Native mobile app versus mobile website -- Prerequisites -- Installing the SDK -- Testing our existing code in the mobile browser -- Going native -- Creating the project -- Creating the WebSocket iPhone app -- What about the iPad? -- Summary -- A. Appendix -- Resources -- Online sources -- Articles -- Source code -- System requirements -- Stay in touch -- Index.
Abstract:
Getting Started with HTML5 Websocket Programming takes a tutorial-based approach.This book is for anyone who wants to build high-performance, true, real-time web applications. Being familiar with frontend web development (HTML / XHTML, JavaScript) would be ideal.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Electronic Access:
Click to View
Holds: Copies: