192
rated 0 times
[
195]
[
3]
/ answers: 1 / hits: 92768
/ 11 Years ago, wed, november 20, 2013, 12:00:00
I'm having trouble wrapping my head around the pipe
function shown in several Node.js examples for the net module.
var net = require('net');
var server = net.createServer(function (socket) {
socket.write('Echo serverrn');
socket.pipe(socket);
});
Can anyone offer an explanation on how this works and why it's required?
More From » node.js