koush/android-websockets — pull request #26 by vinaysshenoy (2013-07-10 01:41:37+00:00)
Title: Ported AndroidAsync Style Socket.IO API to standalone library

I have a few doubts on how to handle certain things -

1. Earlier your AsyncServer would take care of queueing multiple SocketIO connect requests(for the initial setup). I'm currently using an AsyncTask that runs on a single thread. I'm thinking to have a Queue and the WebSocket's connect method runs a loop through the queue to connect websockets. We can make a relatively efficient queueing mechanism this way.

2. Is it worth it to switch between HttpClient and HttpUrlConnection for the webosocket handshake for device OS's? I thought of implementing it, but I felt it's not worth based on how much they are used.

3. The EventCallback method should be sending the event names as well. This way we can have a single listener object that listens for events. Or even route groups of events to different listeners.