-
-
Notifications
You must be signed in to change notification settings - Fork 270
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
undefined "terminate" function while calling close on websocket #168
Comments
Thanks for the details - seems like the websocket object in browsers doesn't have that method. I wonder if it's not necessary in browser environments (where websocket lifecycles behave slightly differently)... This is the line that's calling terminate() |
Also I wonder if it's the heartbeat mechanism thinking that the websocket dropped. I haven't yet added a way to turn off the heartbeat mechanism completely (but I plan in doing so), but in the meantime you can try to increase the heartbeat interval to a large number. Set |
Will be fixed in the next release (2.0.18), available shortly. Please let me know once you've had a chance to test. |
Ah I see - I don't think the heartbeat mechanism will work at all in the browser, although perhaps it's also not necessary there. You can disable it as of the latest version by passing |
Hi all i'm trying following code installing this lib on react browser app.
The websocket is connected successfully and receive data on network but after some seconds i get this error:
that correspond to the following source code:
it seems the close function is called and terminate() method is not present into _b object
The text was updated successfully, but these errors were encountered: