PeelTechnologies / react-native-tcp

node's net api in react-native
MIT License
284 stars 212 forks source link

Not getting data while calling function client.on('data',.... ) #96

Open nancyjainpanamax opened 5 years ago

nancyjainpanamax commented 5 years ago

Hello,

I am not getting data coming from server in following code. But I get the data in TcpSocket.js in _onData prototype.

 client.on('data', function(data) {
        console.log('Received finally: ' + data);
      client.destroy();// kill client after server's response
      });

So main issue is from TcpSocket.js, I am not getting returning value in my screen.js after connecting to server. Please help me.. I m new to react native and javascript.

5115191 commented 3 years ago

same issue