Rapsssito / react-native-tcp-socket

React Native TCP socket API for Android, iOS & macOS with SSL/TLS support.
MIT License
304 stars 80 forks source link

connection closed #107

Closed pouyagholami closed 2 years ago

pouyagholami commented 3 years ago

after run the below code , immediately encounter this error "connection error"

const client = TcpSocket.createConnection( { port: 502, host: '192.168.1.190', reuseAddress: true, // timeout: 500, }, address => { console.log('sent', data); client.write(data); }, );

client.on('data', data => {
  console.log('data recives  from modebus OK!!!', data);
});
client.on('error', error => {
  console.log('error Modbus TEST', error);
});
client.on('close', () => {
  console.log('Modbus connection closed');
});
Rapsssito commented 3 years ago

@pouyagholami, I am sorry, but this does not look an error with this library rather with your setup or network.

github-actions[bot] commented 3 years ago

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community attention? This issue may be closed if no further activity occurs.