Closed ghost closed 13 years ago
As I said in #77 , I believe using WebSocket class directly is better.
I believe that is what I am doing, I am not using main.
I mean, your WebSockAs and WebSock class may be needless. Directly using WebSocket class in BaseJWebSSrv.as may not add much complication. (I haven't tried so I may be wrong.) Of course you can keep your code in your project, but as a sample code of web-socket-js, it may be too complicated.
OK, let me leave the .as code in my project.
Sorry "may not be needless" → "may be needless"
https://github.com/puppetMaster3/Gamina-Core/tree/master/asSrc/org/gamina/srv
WebSocketAs file is the code that I'd like to be added here. It allows for pure .as use of websocket. Main change is making webSockets:Array protected and removing external interface. I'd like for this project to start distributing a swc, not just swf like now. There are 3MM .as developers, and we need a websocket also.
WebSock is example use.