Your SlideShare is downloading. ×
0
Socket.io dan Node
Tech Talk JDV. 2014
Selamat Sore~
Rifqi Alfian
@merembablas
mootuts.com
Freelancer
merembablas@gmail.com
Apa itu Node, enak ga?
Node : Non Blocking I/O

sumber img : https://strongloop.com
Node : Tidak hanya platform, namun juga module

sumber img : https://strongloop.com
Tentang Node
Tanya dong
mas...
Web Socket
1. Cross Origin Communication
2. Proxy, Firewall problem
3. Open Connection, High Concurrency + Low
Cost
Request

Web Socket

Response

sumber img : http://www.websocket.org/
Socket.io : Fitur
1.
2.
3.
4.

Mekanisme ‘Fallback’
Room
Namespace
Authentifikasi
Socket.io : Konfigurasi
Mekanisme Fallback :
io.set('transports', [
'websocket'
, 'flashsocket'
, 'htmlfile'
, 'xhr-pollin...
Socket.io : Authentifikasi
1. Global dan Namespace
2. HanshakeData
{
headers: req.headers
// <Object> the headers of the r...
Demo Socket.io
Lihat dong
mas...
Terima Kasih
mootuts.com
merembablas@gmail.com
Upcoming SlideShare
Loading in...5
×

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

524

Published on

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
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
524
On Slideshare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

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

  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
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×