Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Multiple websocket instances accumulating in the browser after reconnection #548

Closed
hally9k opened this issue Apr 16, 2019 · 0 comments
Closed

Comments

@hally9k
Copy link

hally9k commented Apr 16, 2019

We have an interesting issue we are observing when triggering a reconnection scenario by killing the server.
The connection comes back up correctly but each reconnection that happens results in an additional websocket instance being held in the browser.

Here is a simple Repro:
https://github.com/hally9k/subscription-transport-ws-repro

Does this accumulation of websocket instances represent a memory leak?

For a long running application on potentially shady network connections this appears as though it would absorb more and more resource for every successful reconnection.

Is the dev tools maybe holding onto a reference of the WS? 🤔

@hally9k hally9k changed the title Multiple websocket instances held in the browser after reconnection Multiple websocket instances accumulating in the browser after reconnection Apr 16, 2019
@glasser glasser closed this as completed Mar 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants