I have currently added 1 MIME object for .js file which includes some functions to open and close web socket connection, no UI part is involved.
HTMLIsland is used for adding JS to webdynpro ABAP application.
The scenario is like, there are 2 views V1 and V2.
The navigation is created from V1 to V2 and vice-versa using plugs.
when V1 is loaded one of the JS function is called to create the connection and when through plug V2 is loaded, I want to trigger the another JS function to close the connection
But somehow, the close function on V2 is not triggered immediately when V2 is loaded, it triggers when control to V1 is coming back.
Any suggestion on how to handle this scenario?