Closed wtritch closed 13 years ago
I really like where this is going. I think the changes really simplify the over all layout of the library. There are a couple things I'd like to see in addition to these changes.
I am not sure where else to address these questions so since I like the movement wtritch has made I figure this will do.
Thanks for the patch. Overall it looks good. I pulled the change with some further cleanup.
I added in some setTimeouts to keep roundtrip communication problems from cropping up.
I removed some of them which looks unnecessary. Please let me know if some of them are actually required.
Hello gimite, I hope you like something/anything about these changes, I'm afraid this is my first entry into the opensource world, so I'm a little unversed about protocol and the like. I got your comments on Friday and you were totally right about modifying another 3rd-party plugin within your project, I reverted those changes to the Base64 class. For the polling, I saw the queueing going on in WebSocket, but in the js it looked like only IE and Opera were set to poll for events? I may have missed something... A quick overview of the changes: I removed FABridge, which means there had to be a controller put in place to manage multiple WebSocket instances on both the javascript and flash side. With Flash, I just modified the main application class to keep a list of web sockets. With Javascript I created a WebSocketController class and a single wsController instance that manage the web sockets. The web socket identifier is just a simple incrementing int. I'm pushing all flash/js communications on the flash side through the bridge/JSBridge class, just as a place to keep all of the ExternalInterface communications together. I added in some setTimeouts to keep roundtrip communication problems from cropping up. ...I think that's about it.
I'd like to hear your thoughts/criticisms, wtritch