Why WebSockets?
HTML
CSS
Javascript
HTML
CSS
Javascript
Slide 4
Slide 4 text
What about AJAX?
What about Comet?
What about Streaming?
Slide 5
Slide 5 text
WS is TCP for Browsers
Full Duplex
Connection Oriented
but better…
Text AND Binary
Message Boundaries
URL Addressing
Slide 6
Slide 6 text
How do I implement?
Slide 7
Slide 7 text
API and Protocol
Slide 8
Slide 8 text
API and Protocol
onOpen
onMessage
onClose
onError
Piece of cake!
Handshaking
Key Negotiating
Frame vs. Message
Versioning
Extensions
Message Format
Fragmentation
Masking
Keep Alive
Error Handling
Wrapped Protocols
Think again