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

Flash Socket never initialize (with IE9 or FF6) #101

Closed MrDesjardins closed 12 years ago

MrDesjardins commented 12 years ago

Hi,

Your example work fine but once I put it on a website that has more Javascript on it the .swf never seem to initialize the socket. I have put some tracing and have found that FABridge__bridgeInitialized is never called. So far, at this moment I think that the swf cannot create the socket because the FABridge websocket is undefined. I am running the server with the client you provide in parallel with the integration on my website and the client works (so I know that the problem ain't on the server side).

Here is a trace log:

WebSocket constructor called web_socket.js (line 37) SetTimeOutForCreation web_socket.js (line 44) __initialize web_socket.js (line 308) Flash location : WebSocketMain.swf web_socket.js (line 328) Ready for : FABridge.addInitializationCallback web_socket.js (line 336) addInitializationCallback>Bridgename:webSocket FABridge.js (line 88) addInitializationCallback>inst defined FABridge.js (line 96) addInitializationCallback>callbackList not null FABridge.js (line 102)

But in the same time, your example provide:

WebSocket constructor web_socket.js (line 37) __initialize web_socket.js (line 308) Flash location : WebSocketMain.swf web_socket.js (line 328) Ready for : FABridge.addInitializationCallback web_socket.js (line 336) addInitializationCallback>Bridgename:webSocket FABridge.js (line 88) addInitializationCallback>inst defined FABridge.js (line 96) addInitializationCallback>callbackList not null FABridge.js (line 102) FABridge>AttachBridge from Initialized FABridge.js (line 132) FABridge.attachBridge FABridge.js (line 184) FABridge.attachBridge> #callbacks is : 1 FABridge.js (line 198) [WebSocket] FABridge initializad web_socket.js (line 339) SetTimeOutForCreation web_socket.js (line 44) __createFlash web_socket.js (line 53)

I'll continue my investigation. If you have any idea it would be appreciate.

gimite commented 12 years ago

Closing old issue. Please reopen if you still see the issue.