Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to reconnect immediately to the same socket instance #180

Open
mrAlmond opened this issue Oct 2, 2023 · 3 comments
Open

How to reconnect immediately to the same socket instance #180

mrAlmond opened this issue Oct 2, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@mrAlmond
Copy link

mrAlmond commented Oct 2, 2023

Hi,

I'm using your component to connect to an embedded device exposing a wifi interface and listening to a TCP socket.
This device closes automatically the connection after 10 seconds if no traffic is made.
When I was using Qt with an older application I simply reconnect to the socket when the connection was closed by the other peer and it worked, how can I did the same using this RN component?
I've tried to call "connect" in the socket.on("close" event but then I wasn't able to receive any new event.
Thank you for your help.

@mrAlmond mrAlmond added the bug Something isn't working label Oct 2, 2023
@mrAlmond
Copy link
Author

Hi @Rapsssito please can you give me a feedback about this issue?
Thank you.

@yydexiaojie
Copy link

Hello, I have the same problem:
I'm using your component to connect to an embedded device exposing a wifi interface and listening to a TCP socket.
This device closes automatically the connection after 10 seconds if no traffic is made.

@mrAlmond
Copy link
Author

@Rapsssito are you still working on this project? Can you give feedbacks, otherwise I should drop this library and proceed with some other solution because at the moment its a "no go".
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants