Upload
john-byclosure
View
93
Download
0
Embed Size (px)
Citation preview
HTTP
WebSockets
WebSockets
hixie-75 4 5.0.0
hixie-76 4 (disabled)
6 5.0.1 11 (disabled)
hybi-07 6
hybi-10 7 14 10-dev
hybi-17 16-dev
@sockjsgithub.com/sockjs
History of Comet FallbacksJSO
NP
Fore
ver I
Fram
e
AJAX m
ultipa
rt
Even
tSou
rce
Web
Sock
et
postM
essa
ge
Orbited Socket.io SockJS
AJAX p
ollin
g
AJAX C
ORS
2005 2007 20092006 2010 20112008
Orbited
Socket.io
Socket.io
Socket.io cross domainOpera IE8, IE9
WebSockets - -
Flash Socket ? ?
AJAX CORS - ~
Forever IFrame - -
JSONP + +
postMessage
SockJS cross domainOpera IE8, IE9
WebSockets - -
Flash Socket ? ?
postMessage + AJAX CORS + +
postMessage + Forever IFrame + +
JSONP + +
#sockjs
SockJS
1. Fallbacks
2. Cross domain support
3. Scalability explained (sticky sessions)
4. Specified protocol, multilingual
5. WebSocket like API
History of Comet FallbacksJSO
NP
Fore
ver I
Fram
e
AJAX m
ultipa
rt
Even
tSou
rce
Web
Sock
et
postM
essa
ge
Orbited Socket.io
SockJS
AJAX p
ollin
g
AJAX C
ORS
2005 2007 20092006 2010 20112008
Web
Sock
et
WebSocket
????
@sockjs
http://sockjs.orggithub.com/sockjs/sockjs-client
mud.sockjs.org