Cargando…

Getting Started with HTML5 WebSocket Programming.

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.

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Pterneas, Vangos
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Packt Publishing, 2013.
Colección:Community experience distilled.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Preface; Chapter 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; Chapter 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.
  • Chapter 3: Configuring the ServerWhy 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; Chapter 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 JSONSending images to the server; Summary; Chapter 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; Chapter 6: Error Handling and Fallbacks; Error handling; Checking network availability; Fallback solutions; JavaScript polyfills; Popular polyfills; Browser plugins; Summary; Chapter 7: Going Mobile (and Tablet, Too); Why mobile matters.
  • Native mobile app versus mobile websitePrerequisites; 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; Appendix; Resources; Online sources; Articles; Source code; System requirements; Stay in touch; Index.