Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
SockJS - NodeJS showcase - Dec 2011
Search
majek04
December 06, 2011
Programming
2
520
SockJS - NodeJS showcase - Dec 2011
majek04
December 06, 2011
Tweet
Share
More Decks by majek04
See All by majek04
BPF programmable socket lookup
majek04
0
540
Linux at Cloudflare
majek04
3
6.8k
DDoS Landscape
majek04
0
350
Inside Cloudbleed
majek04
3
2.4k
Golang sucks
majek04
21
51k
Gatelogic - Somewhat functional reactive framework in Python
majek04
1
4.5k
How Cloudflare deals with largest DDoS attacks?
majek04
2
2.9k
Why we chose Service Worker API
majek04
0
2.3k
IP Spoofing - DEFCON
majek04
1
770
Other Decks in Programming
See All in Programming
Google's Recipe for Scaling (Web) Security – LocoMocoSec 2024
lweichselbaum
0
170
実用的かつリーズナブルな 「Azure × Gemini × LINE」~キャラクターBot 実装ライブデモ~
tomodo_ysys
1
170
「2024年版 Kotlin サーバーサイドプログラミング実践開発」の補講 〜O/Rマッパー編〜
n_takehata
2
260
CSC307 Lecture 07
javiergs
PRO
0
220
Temporalを取り巻く仕様を整理する
sajikix
0
110
3 Effective Rules for Success with Signals in Angular
manfredsteyer
PRO
0
120
12年前の『型システム入門』翻訳の思い出話
mame
11
1.2k
Folding Cheat Sheet #7
philipschwarz
PRO
0
150
企業向け生成AIアプリの 開発から得られた知見
takaakikakei
0
310
Android開発者のための Kotlin Multiplatform入門
ntaro
0
190
コード生成を伴うLLMエージェント - 2024.07.18 Tokyo AI
smiyawaki0820
11
4.1k
さきがけから振り返るアーキテクチャ刷新 / Reflecting on the Architectural Renewal from the Vanguard
nrslib
2
770
Featured
See All Featured
Build The Right Thing And Hit Your Dates
maggiecrowley
28
2.2k
KATA
mclloyd
20
13k
GitHub's CSS Performance
jonrohan
1026
450k
Why Our Code Smells
bkeepers
PRO
332
56k
Building Adaptive Systems
keathley
34
2k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
18
1.2k
Code Reviewing Like a Champion
maltzj
517
39k
Fashionably flexible responsive web design (full day workshop)
malarkey
399
65k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3.3k
Designing for Performance
lara
604
67k
Navigating Team Friction
lara
181
13k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
245
1.2M
Transcript
SockJS WebSocket emulation kept simple, stupid Marek Majkowski
[email protected]
None
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
@sockjs github.com/sockjs
None
History of Comet Fallbacks JSO N P Forever IFram e
AJAX multipart EventSource W ebSocket postM essage Orbited Socket.io SockJS AJAX polling AJAX CO RS 2005 2007 2009 2006 2010 2011 2008
Orbited
Socket.io
Socket.io
Socket.io cross domain Opera IE8, IE9 WebSockets - - Flash
Socket ? ? AJAX CORS - ~ Forever IFrame - - JSONP + +
postMessage
SockJS cross domain Opera 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 Fallbacks JSO N P Forever IFram e
AJAX multipart EventSource W ebSocket postM essage Orbited Socket.io SockJS AJAX polling AJAX CO RS 2005 2007 2009 2006 2010 2011 2008 W ebSocket WebSocket ????
@sockjs http://sockjs.org github.com/sockjs/sockjs-client
mud.sockjs.org