title: Anyone successful in implementing a WebSocket Server for Android?
body: <p>I'm trying to implement both the WebSocket Client and the WebSocket Server on the same Android device.  Basically I have two Android apps that need to communicate.  I've implemented a couple of test apps using LocalSockets successfully, but the target Client side app is a web browser app so it can only use WebSockets.</p>
  
  <p>I've tried the <a href="https://github.com/TooTallNate/Java-WebSocket" rel="noreferrer">https://github.com/TooTallNate/Java-WebSocket</a> implementation.  I have the Client app running in the foreground and the Server app running in an Android Service in the background.  Essentially, I've taken my LocalSocket implementations that works and replaced the LocalSockets with TooTallNate's WebSockets.  It appears that the WebSocket Server is failing to start.  The obvious symptom is that the Client side throws a NotYetConnectedException every time it tries to send something.</p>
  
  <p>Another symptom is if I try to use WebSocketServer.run() instead of WebSocketServer.start() I get an IOException from ServerSocketChannel.open().</p>
  
  <p>Any ideas are certainly welcome at this point.  Thanks! </p>