-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Removing a Websocket Errors #160
Comments
Could you provide a MWE in code? |
Below I have linked a basic server from your documentation and then the client server with the breaking websockets. |
For code, please use the markdown code blocks available in the editor by clicking the <> symbol. The easiest is typically to pasta a block of code, then highlight the code and click the <> symbol. I just tried running your example, and I get the error. But it doesn't seem related to the websocket, the error seems related to bugs in the way children are being manipulated in the |
For some reason when I wrapped the code in the code block it excluded large parts of the code. |
Hi, I suspect that I currently have the same problem using websockets in my dash project, so I wanted to know if there is any news on this? My scenario is that I have a dash app with multiple pages and I only want to keep a websocket connection open if the user is on one specific page. I can connect to the websocket on that specific page, but when I try to change the page (and thereby close and unload the websocket) the app crashes. I hope to hear any updates you might have. Thanks! |
Hi, I have encountered the same issue when using a WebSocket in a multipage app and changing away from a page containing one ore more unclosed WebSockets. The full traceback is:
|
Hi, I also have this issue and it could probably be resolved exactly like @Parker-Bergen suggested... just remove the PS: Actually, remove all callbacks here just to be safe and avoid memory leaks. ^^ |
I have just pushed an rc release with a potential fix. Could you test if it resolves your issues @m3g4p0p ? |
Hi @emilhe, yes cool many thanks, that seems to have fixed the issue. :) |
Hi, I am currently rending a Websocket when I need to, but when I stop render the Websocket , remove it from children of an object, the Websocket will try to push its props back to the child resulting in an error since non of the object information about the Websocket component exists.
Is there a way around this or to stop the Websocket from pushing its props on close?
Children should be empty but instead gets filled with the below info:
The text was updated successfully, but these errors were encountered: