updates of socket.io@1.0

Post on 10-May-2015

2.553 Views

Category:

Technology

1 Downloads

Preview:

Click to see full reader

DESCRIPTION

5min LT @ #html5day in japan

TRANSCRIPT

finally we got

Socket.IO@1.0

2014/6/13@html5day

Jack

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

次世代 Web Podcast #mozaicfm

http://mozaic.fm

library for realtime web

Socket.IO@1.0

at 東京 Node 学園祭

at 東京 Node 学園祭

Socket.IO@1.0will come soon :)

at 東京 Node 学園祭

Socket.IO@1.0will come soon :)

2011

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)

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

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

top related