PacktLib: Getting Started with HTML5 WebSocket Programming

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

Summary

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

Summary

Data Transfer – Sending, Receiving, and Decoding

What kinds of data can WebSockets transfer?

Putting it all together

Summary

Security

WebSocket headers

Common attacks

WebSocket native defence mechanisms

Security toolbox

Summary

Error Handling and Fallbacks

Error handling

Fallback solutions

Summary

Going Mobile (and Tablet, Too)

Why mobile matters

Going native

What about the iPad?

Summary

Appendix

Appendix

Appendix

Index