A new instance is created when I use pause() and stop() don't work within websocket.io
I am having a simple test for a pipeline where I need to control the stream play(), pause(), and stop() from a client side through websocket events. It works for the most part however, the problem is when I close the client side page (closing the socket) and reopening it I lose the ability to control the stream anymore, I can't pause it or stop it, it does however keep the pipeline running. I noticed it's like opening a new "instance" -new gstreamer window appears with paused image- when I pause() it and that's why it's no longer pausing the previous one. Note: as long as I keep the page open, I can control the stream with pause/stop here's a code snipped maybe better explains it or replicating the issue.
https://www.codepile.net/pile/WnKjKOEb