gimite / web-socket-js

HTML5 Web Socket implementation powered by Flash
BSD 3-Clause "New" or "Revised" License
2.73k stars 489 forks source link

Multiple FlashSocket Connections #130

Open sri-rang opened 11 years ago

sri-rang commented 11 years ago

FF3.6

I get the ActionScript RTE on WebSocketMain.send() "cannot access member of undefined" when i have multiple connections in a page that has nested frames.

ParentFrame has a FlashSocket connection; It contains a ChildFrame that also has another FlashSocket connection.

Both frames access the SWF file on the same path. Is there a way that "namespaces" are getting mixed up? Can we explicitly enforce these?

Not sure if its a bug in your library. More likely in my implementation.

Any ideas?

gimite commented 11 years ago

Both frames access the SWF file on the same path. Is there a way that "namespaces" are getting mixed up?

I believe not, but I'm not sure. I have never tried it. How about putting two copies of WebSocketMain.swf in different locations and loads each of them in each frame?

Please let me know if you find the cause.