Boost PC performance: How more available memory can improve productivity
Node and SocketIO
1. Node Demo Night
Realtime Chat with Node, SocketIO, Angular
Friday, March 29, 13
2. Part 1: The Server Side
• Node Basics
• Install, Hello World, Packages, and Such
• Socket IO
• Lib for Client/Server Data Interaction
Friday, March 29, 13
3. Installing Node
• How to install node
howtonode.org/how-to-install-nodejs
• How I installed node
brew install node
• requires apple’s command line dev tools
• npm package manager comes with it
Friday, March 29, 13
4. Hello World
• Hello Console
console.log("Hello World");
• Hello World
response.write("Hello Worldn");
• Hello Web
response.writeHead(200,
{"Content-Type": "text/html"});
Friday, March 29, 13
5. Hello SocketIO
• Realtime JavaScript Apps
• by transferring data in the background
• Server Package + Client Lib
• broadcast (everyone else) or emit (single) to send data
• sits in front of lots of libs/tools
• websocket, flash socket, ajax streaming/long polling,
iframe, jsonp -- supports back to IE 5.5!
Friday, March 29, 13