title: How to use websockets with Ionic?
body: <p>I am developing an Ionic application with websockets and I have two problems. </p>
  
  <p>First on my avd (android 5) I have had an app with working websockets and after playing with </p>
  
  <pre><code>preference name="android-minSdkVersion" value="14"
  preference name="android-targetSdkVersion" value="19"
  </code></pre>
  
  <p>or maybe with cordova websocket plugins? Can't pin point exactly but only this seems relevant. The websocket won't open.</p>
  
  <p>Second the websocket object was not defined on my android phone (4.1.2) so what are best practices for Ionnic to use websockets with android? </p>
  
  <p>I currently removed some cordova websocket plugins that I checked if they would fix websockets for my phone. I don't have much to go on now there is no documentation that I have found usefull and websocket doesnt give an error just won't open. Regular rest service works and fetches data from server.</p>
  
  <p>The server-side works ok scince web client does not have such problems.</p>