Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Porthole intefering with WebSocket #40

Open
Aranad opened this issue Nov 8, 2015 · 2 comments
Open

Porthole intefering with WebSocket #40

Aranad opened this issue Nov 8, 2015 · 2 comments

Comments

@Aranad
Copy link

Aranad commented Nov 8, 2015

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?

@Aranad
Copy link
Author

Aranad commented Nov 9, 2015

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 :-)

@Aranad Aranad closed this as completed Nov 9, 2015
@Aranad
Copy link
Author

Aranad commented Nov 9, 2015

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).

@Aranad Aranad reopened this Nov 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant