Exploring the Future Potential of AI-Enabled Smartphone Processors
Pushing the web — WebSockets
1. Pushing the Web
with WebSockets.
Roland Moriz, Moriz GmbH
http://www.moriz.de/
http://www.IsItRails.com/
2. HTTP
is a stateless protocol.
Request
GET / HTTP/1.1
Host www.moriz.de
User-Agent Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; de-de) ...
Accept application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;
...
3. HTTP
is a stateless protocol.
Response
HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Vary: Accept-Encoding
Status: 200
X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.11
ETag: "857fa3051dead14aca5efdbc8721f6a1"
X-Runtime: 20
Cache-Control: max-age=43200, public
Server: nginx/0.7.64 + Phusion Passenger 2.2.11 (mod_rails/mod_rack)
Content-Encoding: gzip
Content-Length: 2027
Date: Fri, 11 Jun 2010 08:45:10 GMT
X-Varnish: 692995266 692995045
Age: 3535
Via: 1.1 varnish
Connection: keep-alive
X-Cache: HIT
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
<!-- All your Base are belong to us! -->
36. JSON AMQP
Bayeux STOMP
XMPP (Jabber)
BOSH
etc..
Current limitation: No binary data!
37. !!! WARNING: At this time,
the WebSocket protocol cannot
be used to send binary data.
Using any of the frame types
other than 0x00 and 0xFF is
invalid. All other frame
types are reserved for future
use by future versions of this
protocol.