Updates of socket.io@1.0

3,731 views
3,555 views

Published on

5min LT @ #html5day in japan

Published in: Technology, Education

Updates of socket.io@1.0

  1. 1. finally we got Socket.IO@1.0 2014/6/13 @html5day
  2. 2. Jack ● id: Jxck ● github: Jxck ● twitter: jxck_ ● about: http://jxck.io ● blog: http://d.hatena.ne.jp/jxck ● Love: music
  3. 3. 次世代 Web Podcast #mozaicfm http://mozaic.fm
  4. 4. library for realtime web Socket.IO@1.0
  5. 5. at 東京 Node 学園祭
  6. 6. at 東京 Node 学園祭 Socket.IO@1.0 will come soon :)
  7. 7. at 東京 Node 学園祭 Socket.IO@1.0 will come soon :) 2011
  8. 8. 3 years later ...
  9. 9. June 2014
  10. 10. new features ● Engine.IO ● better upgrade mechanism ● binary support ● client libs on CDN ● better connecting support ● better testing environment ● better debugging ● better API ● etc
  11. 11. Architecture socket.io room, namespace, auth etc engine.io xhr-polling, jsonp-polling etc ws RFC6455, Hybi, Hixie implementation
  12. 12. Intermediary Problem _人人人_ > FW <  ̄Y^YY^Y ̄ _人人人_ > Proxy <  ̄Y^YY^Y ̄
  13. 13. Handshake - Was delay WebSocket XHR connection complete connection fail x
  14. 14. Handshake - New XHR WebSocket connection upgrade connection complete no delay
  15. 15. binary support fs.readFile('image.png', function(err, buf){ socket.emit('image', { image: true, buffer: buf }); }); ● Buffer ● Blob ● ArrayBuffer ● File ● (fallback: base64)
  16. 16. http://weplay.io (socket.io + canvas)
  17. 17. connectivity
  18. 18. CDN <script src="https://cdn.socket.io/socket.io-1.0.0.js">
  19. 19. i18n documentation 日本語翻訳者募集してます! @jxck_ まで! will on http://socket.io/jp/docs
  20. 20. Socket.IO meetup in Japan ! Guillermo Rauch will Come here in Japan again !
  21. 21. thanks :) END

×