WebSocket Essentials – Building Apps with HTML5 WebSockets
eBook - ePub

WebSocket Essentials – Building Apps with HTML5 WebSockets

Varun Chopra

Partager le livre
  1. 110 pages
  2. English
  3. ePUB (adapté aux mobiles)
  4. Disponible sur iOS et Android
eBook - ePub

WebSocket Essentials – Building Apps with HTML5 WebSockets

Varun Chopra

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

À propos de ce livre

About This Book

  • Learn to build your real-time collaborative application for mobiles and tablets using WebSockets
  • Set up your own WebSocket server and familiarize yourself with the combined power of WebSockets with HTML5
  • A practical guide, accompanied by examples, which will help you to understand the working of the Node.js WebSocket server

Who This Book Is For

This book is for web developers who want to learn and implement WebSocket to create interesting apps for modern browsers, leveraging the capabilities of HTML5 with WebSockets.

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que WebSocket Essentials – Building Apps with HTML5 WebSockets est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  WebSocket Essentials – Building Apps with HTML5 WebSockets par Varun Chopra en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Ciencia de la computaciĂłn et ProgramaciĂłn en HTML. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
2015
ISBN
9781784395001

WebSocket Essentials – Building Apps with HTML5 WebSockets


Table of Contents

WebSocket Essentials – Building Apps with HTML5 WebSockets
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. Introducing the World of Web App
What is the Web?
Web applications
Where does WebSockets fit?
WebSockets over other methods
Modern browsers
HTML
HTML5 – the modern Web standard
Media – audio/video
Canvas
Form elements
Semantics
Mobile first
Offline storage
Geolocation
Drag and drop
Web workers
JavaScript
Modern servers
WebSockets
Summary
2. Getting Started with WebSockets
Why WebSockets?
Importance of WebSockets
When to use?
How it works?
WebSocket API
Ready states
Events
Echo Test
The WebSockets client app
Instantiation
Adding events
Sending messages
Receiving messages
Closing the connection
The WebSocket server
The Node.js server
Summary
3. Configuring the Server and Transferring Real-time Data
Full-duplex real-time data transfer
Foundation of real-time applications
Collaborative presentation application
The presentation library
Setting up the library
Adding collaboration
Code implementation
The client code
Code explanation
The server code
Code explanation
Do it yourself
Input username
The list of users
User-based authorization to change the presentation
Making the user the presenter
Tips and tricks
Summary
4. Using WebSockets in Real Scenario
The real scenario
The JavaScript framework
AngularJS
Learn by doing
The collaborative drawing application
Requirements
The drawing library
The client application
Integrating with the server
The client code
Code explanation
The server code
Code explanation
Do it yourself
User registration
The list of users
Share with specific users
Save drawings
The application structure
Restructure the application
Model
View
Controller
Service
Summary
5. WebSockets for Mobile and Tablet
Mobile devices and the WebSocket
Pusher
Socket.IO
Running server on mobile
Local server on mobile
Mobile output
Browser support
Do it yourself
Scenario 1
Scenario 2
Scenario 3
Summary
6. Enhancing HTML5 Web Application Development Using Modern Tools
Modern tools and techniques
Code editors
Boilerplates
Packaging tools
Build tools
Application frameworks
Modern servers
Responsive web design
The MEAN stack
Summary
Index

WebSocket Essentials – Building Apps with HTML5 WebSockets

Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: April 2015
Production reference: 1270415
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78439-675-6
www.packtpub.com

Credits

Author
Varun Chopra
Reviewers
Adir Amsalem
Sann-Remy Chea
Commissioning Editor
Amarabha Banerjee
Acquisition Editor
Sonali Vernekar
Content Development Editor
Mamata Walkar
Technical Editor
Siddhesh Patil
Copy Editors
Puja Lalwani
Vikrant Phadke
Project Coordinator
Shipra Chawhan
Proofreaders
Safis Editing
Paul Hindle
Indexer
Monica Mehta
Production Coordinator
Aparna Bhagat
Cover Work
Aparna Bhagat

About the Author

Varun Chopra has a lot of experience in the design and development of enterprise applications. He has worked as a consultant and has extensive experience in integrating different technologies. Besides his love of technology, he is also a singer and a guitarist and loves gadgets.

About the Reviewers

Adir Amsalem is a software engineer from Israel. Since the age of 16, he has loved developing websites and web apps, reading about technology, and solving technological challenges. He currently works for a major financial institution, where he leads web and frontend development of several products. Previously, he was a web developer and frontend developer at several Israeli companies and was also a freelancer.
Sann-Remy Chea works as a software engineer at Ubisoft Owlient, a video game company specializing in web and mobile games, based in Paris, France. He has also worked at IBM as an application architect intern. Fond of web application development, he specializes in JavaScript and Node.js.

www.PacktPub.com

Support files, eBooks, discount offers, and more

For support files and downloads related to your book, please visit www.PacktPub.com.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
Support files, eBooks, discount offers, and more
https://www2.packtpub.com/books/subscription/packtlib
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can search, access, and read Packt's entire library of books.

Why ...

Table des matiĂšres