Socket.io tech talk 06022014

852 views
747 views

Published on

Socket.io dan Node. Tech Talk JDV dan Qiscus. Jogja Digital Valley, 12 Februari 2014

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
852
On SlideShare
0
From Embeds
0
Number of Embeds
265
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Socket.io tech talk 06022014

  1. 1. Socket.io dan Node Tech Talk JDV. 2014
  2. 2. Selamat Sore~ Rifqi Alfian @merembablas mootuts.com Freelancer merembablas@gmail.com
  3. 3. Apa itu Node, enak ga?
  4. 4. Node : Non Blocking I/O sumber img : https://strongloop.com
  5. 5. Node : Tidak hanya platform, namun juga module sumber img : https://strongloop.com
  6. 6. Tentang Node Tanya dong mas...
  7. 7. Web Socket 1. Cross Origin Communication 2. Proxy, Firewall problem 3. Open Connection, High Concurrency + Low Cost
  8. 8. Request Web Socket Response sumber img : http://www.websocket.org/
  9. 9. Socket.io : Fitur 1. 2. 3. 4. Mekanisme ‘Fallback’ Room Namespace Authentifikasi
  10. 10. Socket.io : Konfigurasi Mekanisme Fallback : io.set('transports', [ 'websocket' , 'flashsocket' , 'htmlfile' , 'xhr-polling' , 'jsonp-polling' ]);
  11. 11. Socket.io : Authentifikasi 1. Global dan Namespace 2. HanshakeData { headers: req.headers // <Object> the headers of the request , time: (new Date) +'' // <String> date time of the connection , address: socket.address() // <Object> remoteAddress and remotePort object , xdomain: !!headers.origin // <Boolean> was it a cross domain request? , secure: socket.secure // <Boolean> https connection , issued: +date // <Number> EPOCH of when the handshake was created , url: request.url // <String> the entrance path of the request , query: data.query // <Object> the result of url.parse().query or a empty object }
  12. 12. Demo Socket.io Lihat dong mas...
  13. 13. Terima Kasih mootuts.com merembablas@gmail.com

×