Avoid creating new socket every time on connectAsync#40
Avoid creating new socket every time on connectAsync#40angelix wants to merge 3 commits intosacOO7:masterfrom
Conversation
|
Hi @angelix , I am not sure if it creates new connection everytime.... I am sure, it will close the previous socket (The reason why new one is created). Still, will look into it. Thank you for the PR. |
|
My server had a new connection for every connectAsync from the client. |
|
Hey, will be looking into it. Little busy those days ... |
|
Did you have the time to test this @sacOO7 ? Thanks |
|
Hi @sacOO7 , |
1 similar comment
|
Hi @sacOO7 , |
|
Hi @sacOO7 |
|
@sacOO7 ? :( |
|
Hey @angelix , will be looking into this |
For every call to connect/connectAsync there is a new ws socket created, leaving the previous one connected but orphaned.
This PR, allow only one instance of Socket to be actively connected at any time.