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

Like this? Share it with your network

Share

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

  • 574 views
Uploaded on

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.

More 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
574
On Slideshare
473
From Embeds
101
Number of Embeds
4

Actions

Shares
Downloads
2
Comments
0
Likes
0

Embeds 101

http://tech.qisc.us 89
http://www.arfadia.com 7
http://assets.txmblr.com 3
http://www.slideee.com 2

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