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)

on

  • 546 views

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.

Statistics

Views

Total Views
546
Views on SlideShare
445
Embed Views
101

Actions

Likes
0
Downloads
2
Comments
0

4 Embeds 101

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

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Qiscus TechTalk - Real-time Website with Node.js (socket.io) Presentation 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