Skip to content

Instantly share code, notes, and snippets.

View rubyonrails3's full-sized avatar

Ismail Akram rubyonrails3

View GitHub Profile
@rubyonrails3
rubyonrails3 / hello.js
Created January 29, 2012 19:30
This is hello World in NodeJs with Socket.IO
var http = require('http'),
url = require('url'),
ios = require('socket.io'),
fs = require('fs');
var server = http.createServer(function(req, res) {
res.writeHead(200, {'Content-Type': 'text/html'});
res.end('<h1>Hello NodeJs</h1>');
});