You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using porthole to allow an iFrame to communicate with the parent page. The iFrame has a WebSocket connection to the server, and for some reason after I install the porthole it disconnects my WebSocket. I tried reconnecting it on disconnect, but it keeps getting disconnected every second or so. Any ideas what might be causing that?
The text was updated successfully, but these errors were encountered:
I've found that this problem is not with porthole, when I use postMessage by itself the disconnection problem still happens! So I'm closing the issue, but if you have any idea why this may be happening please let me know :-)
Oh yes actually the problem is with porthole after all. Even though I was not initialising porthole, just including the script was enough to cause the WebSocket to be continuously disconnected. After removing the script from the parent and iFrame, everything works using postMessage. (I'm on Firefox 41).
I'm using porthole to allow an iFrame to communicate with the parent page. The iFrame has a WebSocket connection to the server, and for some reason after I install the porthole it disconnects my WebSocket. I tried reconnecting it on disconnect, but it keeps getting disconnected every second or so. Any ideas what might be causing that?
The text was updated successfully, but these errors were encountered: