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
#!/usr/bin/env node | |
"use strict"; | |
// Cliente simples que conecta por socket e printa dados recebidos na stream - nodejs | |
var net = require('net'); | |
var client = net.createConnection({port: 8080}, function() { | |
console.log('Connected to server'); | |
}); |