Getting Started with HTML5 WebSocket Programming
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
WebSocket – a Handshake!
Life before WebSocket
Then came HTML5
The WebSocket protocol
Mobile?
The future is now
What are we going to make?
Summary
The WebSocket API
HTML5 basics
A chatting application
API overview
Configuring the Server
Why do I need a WebSocket server?
Setting up the server
Connecting to the web server
Other methods
The complete source code
Data Transfer – Sending, Receiving, and Decoding
What kinds of data can WebSockets transfer?
Putting it all together
Security
WebSocket headers
Common attacks
WebSocket native defence mechanisms
Security toolbox
Error Handling and Fallbacks
Error handling
Fallback solutions
Going Mobile (and Tablet, Too)
Why mobile matters
Going native
What about the iPad?
Appendix
Index