title: React native: Stomp websocket not working in android
body: <p>I try use <a href="https://github.com/jmesnil/stomp-websocket" rel="nofollow noreferrer">https://github.com/jmesnil/stomp-websocket</a> and <a href="https://github.com/JSteunou/webstomp-client" rel="nofollow noreferrer">https://github.com/JSteunou/webstomp-client</a></p>
  
  <p>My server use Spring-boot</p>
  
  <p>Mycode:</p>
  
  <pre><code>var Stomp = require('stompjs/lib/stomp.js').Stomp;
  let client = Stomp.client(url);
  client.connect({}, function connectCallback(frame){
     console.log('OK')
  }, (error) =&gt; {
     console.log('Error');
  });
  </code></pre>
  
  <p>Both working with IOS but in android this can't connect with server.</p>
  
  <blockquote>
    <p>Web Socket Opened... </p>
    
    <p>CONNECT </p>
    
    <p>accept-version:1.1,1.0</p>
    
    <p>heart-beat:10000,10000 </p>
    
    <p>Whoops! Lost connection</p>
    
    <p>Error</p>
  </blockquote>