Professional Documents
Culture Documents
Getting Started With: Understanding The Real-Time Web
Getting Started With: Understanding The Real-Time Web
Getting Started With: Understanding The Real-Time Web
Roland Guijt
MVP | CONSULTANT | TRAINER | AUTHOR
@rolandguijt rolandguijt.com
Module
Overview Real-time web applications
AJAX
Polling and long polling
Server sent events
WebSockets
Email clients
Social media
Web documents
Real-time Web Auctions
Applications
Gaming
Stock quotes
Client and Server
An HTTP Request
Server to Client
AJAX
Update!
Polling
Long Polling
Long Polling
Timeout
Server Sent Events (SSE)
EventSource
Simple HTTP
Auto reconnects
No support for older browsers
TCP Socket
Full duplex messaging
No 6 connection limit
TCP Socket
C
l
HTTP
Exchange data o
Handshake
s
e
Web Sockets Handshake
Shall we
upgrade?
101: Fine!
Web Sockets Handshake: Request
Message Types
Ping/pong
Close
Frames
Message