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

this library is missing an end() method #905

Open
KamalTolouiFard opened this issue Aug 27, 2024 · 1 comment
Open

this library is missing an end() method #905

KamalTolouiFard opened this issue Aug 27, 2024 · 1 comment

Comments

@KamalTolouiFard
Copy link

hello

i guess it is pretty obvious that every beginning needs an ending, specially when you use asynchronous tcp socket.
in my case i need to :

  • connect to a web socket server
  • send/receive data
  • close the connection

when you see a begin() method you expect an end() method as well.
after calling the disconnect() method, the socket wont get destroyed, it remains there and it tries to reconnect to the server!
and every time i connect to the server for a new session i get n + 1 client sockets because the previous one is still there.

the only work around the issue, at least what i could think of is to destroy the webSocketClient object manually and create a new one when i need it .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@KamalTolouiFard and others