• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Realtime rocks
 

Realtime rocks

on

  • 2,892 views

Realtime with Node.js and Socket.io

Realtime with Node.js and Socket.io

Statistics

Views

Total Views
2,892
Views on SlideShare
2,532
Embed Views
360

Actions

Likes
4
Downloads
56
Comments
0

4 Embeds 360

http://vanbosse.be 350
http://jolidev-jolicloud.dotcloud.com 7
https://www.linkedin.com 2
http://www.verious.com 1

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

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
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

Realtime rocks Realtime rocks Presentation Transcript

  • REALTIME ROCKS!No shit.
  • Hi! I’m Jeroen.
  • RealtimeWebsockets with node.js and socket.io
  • Websockets?
  • WebSocket is a web technologyproviding for bi-directional, full-duplex communications channelsover a single TCP connection. Full duplex realtime FTW!@mlitnWho else?
  • 1. Node.js2. Socket.io3. Code4. Demo
  • 1. Node.js2. Socket.io3. Code4. Demo
  • 1. Node.js2. Socket.io3. Code4. Demo
  • 1. Node.js2. Socket.io3. Code4. Demo
  • Node.jshttp://nodejs.org
  • Node.js uses an event-driven, non-blocking I/O model that makes itlightweight and efficient, perfectfor data-intensive real-timeapplications that run across Serverside JavaScript. Memory efficiency. No deadlocks.Node.js Event=driven.http://nodejs.org/
  • Node.js• Programs written in JavaScript.• Event-driven.• Asynchronous I/O• Google’s V8 JavaScript engine.• Npm.
  • Socket.iohttp://socket.io
  • Socket.IO aims to make realtimeapps possible in every browser andmobile device, blurring thedifferences between the differenttransport mechanisms. Its care- Browser support. Feed them flash haters. And again... JavaScript!Socket.iohttp://socket.io/
  • Browser support:Socket.io WebSocket, Flash, AJAX long polling, AJAX multipart streaming, Forever iFrame, JSONP Polling.• Browser support.• Programs written in JavaScript.• Included in npm.• WebSocket/Flash/AJAX/Forever/ JSONP.
  • Code Custom events,Here be dragons.
  • Setup• Download and install node.js • http://nodejs.org/#download• Install socket.io • npm install socket.io• Run server JavaScript. • node js/server.js
  • Serverhttps://github.com/Vanbosse/websockets-demo/blob/master/js/server.js
  • Clienthttps://github.com/Vanbosse/websockets-demo/blob/master/js/client.js
  • Demohttps://github.com/Vanbosse/websockets-demo
  • Clone https://github.com/Vanbosse/websockets-demoand go play. Hosting? http://nodejs.be (Openminds)
  • Questions?
  • twitter.com/vanbossejeroen@wijs.bewww.wijs.be