var net           = require('net');

// SERVER SIDE
var net_port   = 8080; // node net port
var server = net.createServer(function(connection){
   connection.on('data', function(data){
          var str = data.toString();
          console.log("String, Length: "+str.length);
    });
   connection.pipe(connection);
});

server.listen(net_port, function() { 
   console.log('server is listening');
});


// ### CLIENT SIDE
var client = net.connect({port: 8080}, function() {
   console.log('connected to server!');  
});

string = "acdefghijklmnopqrstuvwxyz"; // 25 char
setInterval(function(){
	client.write(string);
	client.write(string);
},1);
setInterval(function(){
	client.write(string);
	client.write(string);
},1);

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: