updates of [email protected]
DESCRIPTION
5min LT @ #html5day in japanTRANSCRIPT
![Page 2: Updates of socket.io@1.0](https://reader033.vdocuments.site/reader033/viewer/2022060108/554f700fb4c905c8088b5504/html5/thumbnails/2.jpg)
Jack
● id: Jxck● github: Jxck● twitter: jxck_● about: http://jxck.io● blog: http://d.hatena.ne.jp/jxck● Love: music
![Page 5: Updates of socket.io@1.0](https://reader033.vdocuments.site/reader033/viewer/2022060108/554f700fb4c905c8088b5504/html5/thumbnails/5.jpg)
at 東京 Node 学園祭
![Page 8: Updates of socket.io@1.0](https://reader033.vdocuments.site/reader033/viewer/2022060108/554f700fb4c905c8088b5504/html5/thumbnails/8.jpg)
3 years later ...
![Page 9: Updates of socket.io@1.0](https://reader033.vdocuments.site/reader033/viewer/2022060108/554f700fb4c905c8088b5504/html5/thumbnails/9.jpg)
June 2014
![Page 10: Updates of socket.io@1.0](https://reader033.vdocuments.site/reader033/viewer/2022060108/554f700fb4c905c8088b5504/html5/thumbnails/10.jpg)
new features● Engine.IO● better upgrade mechanism● binary support● client libs on CDN● better connecting support● better testing environment● better debugging● better API● etc
![Page 11: Updates of socket.io@1.0](https://reader033.vdocuments.site/reader033/viewer/2022060108/554f700fb4c905c8088b5504/html5/thumbnails/11.jpg)
Architecture
socket.io room, namespace, auth etc
engine.io xhr-polling, jsonp-polling etc
ws RFC6455, Hybi, Hixie implementation
![Page 12: Updates of socket.io@1.0](https://reader033.vdocuments.site/reader033/viewer/2022060108/554f700fb4c905c8088b5504/html5/thumbnails/12.jpg)
Intermediary Problem_人人人_
> FW <
 ̄Y^YY^Y ̄
_人人人_
> Proxy <
 ̄Y^YY^Y ̄
![Page 13: Updates of socket.io@1.0](https://reader033.vdocuments.site/reader033/viewer/2022060108/554f700fb4c905c8088b5504/html5/thumbnails/13.jpg)
Handshake - Was
delay
WebSocket
XHR
connection complete
connection fail x
![Page 14: Updates of socket.io@1.0](https://reader033.vdocuments.site/reader033/viewer/2022060108/554f700fb4c905c8088b5504/html5/thumbnails/14.jpg)
Handshake - New
XHR
WebSocket
connection upgrade
connection complete
nodelay
![Page 15: Updates of socket.io@1.0](https://reader033.vdocuments.site/reader033/viewer/2022060108/554f700fb4c905c8088b5504/html5/thumbnails/15.jpg)
binary support
fs.readFile('image.png', function(err, buf){
socket.emit('image', {
image: true,
buffer: buf
});
});
● Buffer● Blob● ArrayBuffer● File● (fallback: base64)
![Page 17: Updates of socket.io@1.0](https://reader033.vdocuments.site/reader033/viewer/2022060108/554f700fb4c905c8088b5504/html5/thumbnails/17.jpg)
connectivity
![Page 18: Updates of socket.io@1.0](https://reader033.vdocuments.site/reader033/viewer/2022060108/554f700fb4c905c8088b5504/html5/thumbnails/18.jpg)
CDN
<script src="https://cdn.socket.io/socket.io-1.0.0.js">
![Page 19: Updates of socket.io@1.0](https://reader033.vdocuments.site/reader033/viewer/2022060108/554f700fb4c905c8088b5504/html5/thumbnails/19.jpg)
i18n documentation
日本語翻訳者募集してます!
@jxck_ まで!
will on http://socket.io/jp/docs
![Page 20: Updates of socket.io@1.0](https://reader033.vdocuments.site/reader033/viewer/2022060108/554f700fb4c905c8088b5504/html5/thumbnails/20.jpg)
Socket.IO meetup in Japan !
Guillermo Rauchwill Come here in Japan again !
![Page 21: Updates of socket.io@1.0](https://reader033.vdocuments.site/reader033/viewer/2022060108/554f700fb4c905c8088b5504/html5/thumbnails/21.jpg)
thanks :)
END