This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function freeze() { | |
var args = Array.prototype.slice.call(arguments); | |
return args.pop().apply(this, args); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// test1.js | |
var net = require('net'); | |
var server = net.createServer(function(socket) { | |
socket.addListener("data", function(data) { | |
console.log(data.toString()) | |
}); | |
}); |