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

Cross Domain WebSocket SWF file throws errors #75

Closed bradwright closed 13 years ago

bradwright commented 13 years ago

Any time I try to access the WebSocketMainInsecure.swf in Firefox I get this issue in the Flash debugger:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at WebSocket/onSocketConnect()

I'm pretty good with Javascript etc., but Flash is a mystery to me. Any ideas how to debug this further?

gimite commented 13 years ago

Hmm I haven't seen the error. Doesn't it show line number? Otherwise you probably need to put logger.log to random places in onSocketConnect() in WebSocket.as, recompile the SWF and run it again to narrow down the location of the error... Also trying non-Insecure version (with same domain) may help.

bradwright commented 13 years ago

Turns out my error was an old version of Socket.io doing something stupid, so not even your bug! My sincere apologies.