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
530
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
560
Linux at Cloudflare
majek04
3
7k
DDoS Landscape
majek04
0
360
Inside Cloudbleed
majek04
3
2.5k
Golang sucks
majek04
21
52k
Gatelogic - Somewhat functional reactive framework in Python
majek04
1
4.6k
How Cloudflare deals with largest DDoS attacks?
majek04
2
3k
Why we chose Service Worker API
majek04
0
2.4k
IP Spoofing - DEFCON
majek04
1
800
Other Decks in Programming
See All in Programming
タクシーアプリ『GO』のリアルタイムデータ分析基盤における機械学習サービスの活用
mot_techtalk
4
1.4k
OSSで起業してもうすぐ10年 / Open Source Conference 2024 Shimane
furukawayasuto
0
100
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
100
Amazon Bedrock Agentsを用いてアプリ開発してみた!
har1101
0
330
距離関数を極める! / SESSIONS 2024
gam0022
0
280
Jakarta EE meets AI
ivargrimstad
0
610
CSC509 Lecture 11
javiergs
PRO
0
180
Why Jakarta EE Matters to Spring - and Vice Versa
ivargrimstad
0
1.1k
シェーダーで魅せるMapLibreの動的ラスタータイル
satoshi7190
1
480
A Journey of Contribution and Collaboration in Open Source
ivargrimstad
0
900
イベント駆動で成長して委員会
happymana
1
320
ペアーズにおけるAmazon Bedrockを⽤いた障害対応⽀援 ⽣成AIツールの導⼊事例 @ 20241115配信AWSウェビナー登壇
fukubaka0825
6
1.9k
Featured
See All Featured
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
8.2k
Building an army of robots
kneath
302
43k
Designing the Hi-DPI Web
ddemaree
280
34k
Agile that works and the tools we love
rasmusluckow
327
21k
BBQ
matthewcrist
85
9.3k
Optimizing for Happiness
mojombo
376
70k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
410
For a Future-Friendly Web
brad_frost
175
9.4k
Fashionably flexible responsive web design (full day workshop)
malarkey
405
65k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
4
370
The Pragmatic Product Professional
lauravandoore
31
6.3k
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