You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
317 B

// a simple weberver running on port 5555:
var http = require('http');
var server = http.createServer(
function(req, res) {
res.writeHead(200, {'content-Type': 'text/plain'});
res.end('This is the servers answer\n Bye!\n');
});
server.listen(5555);
console.log('Web server running on beaglebone.local:5555');