Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var net = require('net');
- var socket = net.createConnection(1337, '127.0.0.1', function() {
- socket.setEncoding('utf8');
- socket.on('data', console.log.bind(null, "Data arrived:\n"));
- setTimeout(function() {
- console.log("let's shut down a.js ...\nthrow new Error();");
- throw new Error();
- }, 5000);
- });
Add Comment
Please, Sign In to add comment