Download - Updates of [email protected]
Jack
● id: Jxck● github: Jxck● twitter: jxck_● about: http://jxck.io● blog: http://d.hatena.ne.jp/jxck● Love: music
library for realtime web
at 東京 Node 学園祭
at 東京 Node 学園祭
[email protected] come soon :)
3 years later ...
June 2014
new features● Engine.IO● better upgrade mechanism● binary support● client libs on CDN● better connecting support● better testing environment● better debugging● better API● etc
Architecture
socket.io room, namespace, auth etc
engine.io xhr-polling, jsonp-polling etc
ws RFC6455, Hybi, Hixie implementation
Intermediary Problem_人人人_
> FW <
 ̄Y^YY^Y ̄
_人人人_
> Proxy <
 ̄Y^YY^Y ̄
Handshake - Was
delay
WebSocket
XHR
connection complete
connection fail x
Handshake - New
XHR
WebSocket
connection upgrade
connection complete
nodelay
binary support
fs.readFile('image.png', function(err, buf){
socket.emit('image', {
image: true,
buffer: buf
});
});
● Buffer● Blob● ArrayBuffer● File● (fallback: base64)
connectivity
CDN
<script src="https://cdn.socket.io/socket.io-1.0.0.js">
i18n documentation
日本語翻訳者募集してます!
@jxck_ まで!
will on http://socket.io/jp/docs
Socket.IO meetup in Japan !
Guillermo Rauchwill Come here in Japan again !
thanks :)
END