In my initial trials with AutobahnAndroid, I had some success. But I started to run into problems as I tried to complicate things. In particular, I wanted to move all operations into a Service, and ensure that the Handler ran with android.os.Process.BACKGROUND_THREAD priority, as the operations I need to run in the listeners (e.g., onTextMessage) can be blocking operations themselves.
I ran into a lot of issues with dead thread messages and closed connections. I wound up, until I get the service figured out, just creating a singleton that wraps up my WebSocketHandler, and gets stored in the Application class.
Any hints on getting a Service to work nicely with AutobahnAndroid?
Mark Andrachek, Jr.