You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I launch the application 'npm run web' or 'npm run android' I get this error
On the other side I have an ESP32 prepared to receive TCP connections. From a native application in Android I connect directly using Socket. The IP and port I use is the same as the native application, in 'localAddress' I try with the real IP within the wifi (192.168.0.11), localhost and 127.0.0.1. It always shows the same error.
Esp32 never receives data (if I use socket.io Esp32 does receive data but the connection is constantly reset). Is this the typical error when wrong connection data is entered?
I am testing on Android and web
OS -> Mac Big Sur
react-native -> latest
react-native-tcp-socket -> latest
The text was updated successfully, but these errors were encountered:
Error in connection line: "Sockets . connect( this . _id , customOptions . host , customOptions . port , customOptions) ;"
Error msg: Cannot read properties of undefined (reading 'connect')
stack:
connect --> node_modules/react-native-tcp-socket/src/Socket.js:167:17
createConnection --> node_modules/react-native-tcp-socket/src/index.js:50:22
Steps to reproduce the behavior:
`const options = {
port: 8888,
host: '192.168.0.202',
///localAddress: '192.168.0.11',
localAddress: 'localhost',
tls: false,
reuseAddress: true,
// localPort: 20000,
// interface: "wifi",
};
// Create socket
const client = TcpSocket.createConnection(options, () => {
// Write on the socket
client.write('Hello server!');
alert('Say Hello!!!');
});
client.on('data', function(data) {
alert('message was received' + data);
});
client.on('error', function(error) {
alert(error);
});
client.on('close', function(){
alert('Connection closed!');
});`
When I launch the application 'npm run web' or 'npm run android' I get this error
On the other side I have an ESP32 prepared to receive TCP connections. From a native application in Android I connect directly using Socket. The IP and port I use is the same as the native application, in 'localAddress' I try with the real IP within the wifi (192.168.0.11), localhost and 127.0.0.1. It always shows the same error.
Esp32 never receives data (if I use socket.io Esp32 does receive data but the connection is constantly reset). Is this the typical error when wrong connection data is entered?
I am testing on Android and web
OS -> Mac Big Sur
react-native -> latest
react-native-tcp-socket -> latest
The text was updated successfully, but these errors were encountered: