Skip to content

Instantly share code, notes, and snippets.

@troyth
Created November 14, 2013 22:02
Show Gist options
  • Save troyth/7475083 to your computer and use it in GitHub Desktop.
Save troyth/7475083 to your computer and use it in GitHub Desktop.
var http = require('http');
// Start an HTTP server
http.createServer(function (request, response) {
// Every request gets the same "Hello Connect" response.
response.writeHead(200, {"Content-Type": "text/plain"});
response.end("Hello Connect");
}).listen(3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment