Your SlideShare is downloading. ×
  • Like
Qiscus TechTalk - Real-time Website with Node.js (socket.io)
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Qiscus TechTalk - Real-time Website with Node.js (socket.io)

  • 469 views
Published

Qiscus TechTalk presents Rifqi Alfian, Website Programmer, to talk about how to build a realtime website with Node.js using socket.io.

Qiscus TechTalk presents Rifqi Alfian, Website Programmer, to talk about how to build a realtime website with Node.js using socket.io.

Published in Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
469
On SlideShare
0
From Embeds
0
Number of Embeds
4

Actions

Shares
Downloads
2
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Socket.io dan Node Tech Talk JDV. 2014
  • 2. Selamat Sore~ Rifqi Alfian @merembablas mootuts.com Freelancer merembablas@gmail.com
  • 3. Apa itu Node, enak ga?
  • 4. Node : Non Blocking I/O sumber img : https://strongloop.com
  • 5. Node : Tidak hanya platform, namun juga module sumber img : https://strongloop.com
  • 6. Tentang Node Tanya dong mas...
  • 7. Web Socket 1. Cross Origin Communication 2. Proxy, Firewall problem 3. Open Connection, High Concurrency + Low Cost
  • 8. Request Web Socket Response sumber img : http://www.websocket.org/
  • 9. Socket.io : Fitur 1. 2. 3. 4. Mekanisme ‘Fallback’ Room Namespace Authentifikasi
  • 10. Socket.io : Konfigurasi Mekanisme Fallback : io.set('transports', [ 'websocket' , 'flashsocket' , 'htmlfile' , 'xhr-polling' , 'jsonp-polling' ]);
  • 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. Demo Socket.io Lihat dong mas...
  • 13. Terima Kasih mootuts.com merembablas@gmail.com