Skip to content

Instantly share code, notes, and snippets.

@bcurren
Created July 26, 2010 22:58
Show Gist options
  • Save bcurren/491404 to your computer and use it in GitHub Desktop.
Save bcurren/491404 to your computer and use it in GitHub Desktop.
// where to open connection to db now?
module.exports = http.createServer(function(req, res) {
try {
agent_smith.serveRequest(req, res);
} catch(e) {
agent_smith.handleError(req, res, e);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment