SPGameStudio

Node Basic Server'

Aug 22nd, 2012
1,445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.24 KB | None | 0 0
  1. var http = require('http');
  2. http.createServer(function (req, res) {
  3.   res.writeHead(200, {'Content-Type': 'text/plain'});
  4.   res.end('Hello World\n');
  5. }).listen(1337, '127.0.0.1');
  6. console.log('Server running at http://127.0.0.1:1337/');
Add Comment
Please, Sign In to add comment