It was actually due to the Callback methods since the attach() method in SocketIOConnection is called after the WebSocket returns. I didn't want to start parsing before the callbacks were added. Since I'm reverting back to the older Listener interface, this can go as well.