updates of [email protected]

21
finally we got [email protected] 2014/6/13 @html5day

Upload: jxck-

Post on 10-May-2015

2.555 views

Category:

Technology


1 download

DESCRIPTION

5min LT @ #html5day in japan

TRANSCRIPT

Page 1: Updates of socket.io@1.0

finally we got

[email protected]

2014/6/13@html5day

Page 2: Updates of socket.io@1.0

Jack

● id: Jxck● github: Jxck● twitter: jxck_● about: http://jxck.io● blog: http://d.hatena.ne.jp/jxck● Love: music

Page 3: Updates of socket.io@1.0

次世代 Web Podcast #mozaicfm

http://mozaic.fm

Page 4: Updates of socket.io@1.0

library for realtime web

[email protected]

Page 5: Updates of socket.io@1.0

at 東京 Node 学園祭

Page 6: Updates of socket.io@1.0

at 東京 Node 学園祭

[email protected] come soon :)

Page 7: Updates of socket.io@1.0

at 東京 Node 学園祭

[email protected] come soon :)

2011

Page 8: Updates of socket.io@1.0

3 years later ...

Page 9: Updates of socket.io@1.0

June 2014

Page 10: Updates of socket.io@1.0

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

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

Intermediary Problem_人人人_

> FW <

 ̄Y^YY^Y ̄

_人人人_

> Proxy <

 ̄Y^YY^Y ̄

Page 13: Updates of socket.io@1.0

Handshake - Was

delay

WebSocket

XHR

connection complete

connection fail x

Page 14: Updates of socket.io@1.0

Handshake - New

XHR

WebSocket

connection upgrade

connection complete

nodelay

Page 15: Updates of socket.io@1.0

binary support

fs.readFile('image.png', function(err, buf){

socket.emit('image', {

image: true,

buffer: buf

});

});

● Buffer● Blob● ArrayBuffer● File● (fallback: base64)

Page 16: Updates of socket.io@1.0

http://weplay.io (socket.io + canvas)

Page 17: Updates of socket.io@1.0

connectivity

Page 18: Updates of socket.io@1.0

CDN

<script src="https://cdn.socket.io/socket.io-1.0.0.js">

Page 19: Updates of socket.io@1.0

i18n documentation

日本語翻訳者募集してます!

@jxck_ まで!

will on http://socket.io/jp/docs

Page 20: Updates of socket.io@1.0

Socket.IO meetup in Japan !

Guillermo Rauchwill Come here in Japan again !

Page 21: Updates of socket.io@1.0

thanks :)

END