var net = require('net');
var client = new net.Socket();
client.connect(port, 'ip', function() {
console.log('Connected');
client.write('meesage');
});
client.on('data', function(data) {
client.write('meesage');
console.log('Received: ' + data);
client.destroy();
});
client.on('close', function() {
console.log('Connection closed');
});
i try used by browserify but not access in browser i want to send message tcp client to a device with net module