in connecting with the iframe socket connection..
The website makes 2 websocket connection with the server ( one is from parent component(Top context) which is easily accessible
through below piece of code
socket.on("connection",callback)
but the above solution doesn't works for 2nd websocket connection (cuz of the javascript context - check image)
When i click the highlighted value, i gain access to iframe and im able to connect to 2nd websocket connection..
so what i want now is, I want to execute my code in top context and it should work with both the websocket connection but i am not able to achieve that..
Do you have any ideas how it can be done?
in a nutshell, Is their any way to connect with iframe websocket connection from top context?
Обсуждают сегодня