client.on not getting data on single connect
问题 I am using net module to connect client with my server. And here is my code. const Net = require('net'); client = Net.connect(parseInt(port), host, function() { console.log('server connected') }) console.log("ooooooooooooooooooooooooooooo") client.on('data', function(chunk) { let data = chunk.toString() console.log(data) }); client.on('error', function(error) { console.error('error', error); }); The issue is when I connect it with single client it doesn't give me data inside client.on('data'