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

Reconnecting clients after server app is closed #72

Open
flockf opened this issue Jul 2, 2020 · 2 comments
Open

Reconnecting clients after server app is closed #72

flockf opened this issue Jul 2, 2020 · 2 comments

Comments

@flockf
Copy link

flockf commented Jul 2, 2020

Hi all,

I want to ask about the following issue:

When the server app that uses this plugin is closed, the clients that are connected at the time get a 1006 error.
Then, after the server app is restarted the clients can't connect back again, and keep receiving the same error code.

Does anyone know how can the clients connect back without getting that error?
I have tried to get the server to close connections by detecting beforeunload, but it is not working.

Any help will be really appreciated

Thanks.

@becvert
Copy link
Owner

becvert commented Jul 5, 2020

Hello,
Do you bind the server to a specific port ?
If yes, maybe that port is not freed up.

@flockf
Copy link
Author

flockf commented Aug 11, 2021

@becvert Sorry for the late reply. I haven't been active in this account for a while. The issue seemed to be fixed using setReuseAddr(true).
Thanks

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