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 use these methods? #109

Open
doubleLLL3 opened this issue Mar 11, 2020 · 1 comment
Open

how to use these methods? #109

doubleLLL3 opened this issue Mar 11, 2020 · 1 comment

Comments

@doubleLLL3
Copy link

doubleLLL3 commented Mar 11, 2020

There is no change when I use the method refresh() by ws.refresh() when they weren't connected. Why? And when they have been connected, they would just be disconnected and never connect again..
var ws = new ReconnectingWebSocket('ws://localhost:8866/view_tool'); $("#btn_reconnect").click(function(){ ws.refresh(); });

@doubleLLL3 doubleLLL3 changed the title how to use how to use these methods? Mar 11, 2020
@doubleLLL3
Copy link
Author

Finally, I use the method ws.open() to reconnect. But I still don't know why refresh() can't work.

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

1 participant