Rodrigo Martín

Results 60 comments of Rodrigo Martín

@jesperjohansson, thanks for the PR! However, the timeout has been moved to the JS part of the code, as you can see here: https://github.com/Rapsssito/react-native-tcp-socket/blob/c68215ca5e8d196cb069c6d8cfc3817fe3f28f4a/src/Socket.js#L153-L169

@jesperjohansson, I didn't know that was happening. Then there must be a bug in the JS code.

@cc-steina, thanks for the PR! However, this does not fix the root cause of the issue. Can you when the socket is being set to null after the server disconnection?

@rkeiii, thanks for the feedback! I will release a fix ASAP

@itgou, thanks for the PR! However, while this is correct as implementation, it must also be reflected in the type declaration file for the Typescript users. If you do not...

@Overtorment, thanks for the feedback! iOS has a very special way of dealing with sockets when an app is in the background, which may be the root cause of this...

@Overtorment, could you tell me if you are using an HTTPS connection and if you are sending data when the app is in the background?

@sudray, I am sorry for your issue. Could you provide a minimal reproducible example code so I can test it in my local setup?

@Mohamed-kassim, sorry for my late reply. I am working on handling the same errors on iOS and Android. I will close this issue as soon as this is fixed!

@itzsankar, does this issue also occur with simulated devices?