React Native and using websockets
<p>I have such code with react-native@0.17</p>

<pre><code>import React, { AsyncStorage, Component, View, Text, WebView, WebSocket } from 'react-native';
import { Avatar, Divider, Subheader, COLOR } from 'react-native-material-design';

export default class Avatars extends Component {
    _setWebSocket = (endpoint, sessionToken) =&gt; {
      const ws = new WebSocket('wss://' + endPoint + '/api/live?authToken=' + sessionToken);
      console.log('Setting socket: ' + 'wss://' + endpoint + '/api/live?authToken=' + sessionToken);
</code></pre>

<p>and I'm calling code from:</p>

<pre><code>componentDidMount() {
   this._setWebSocket(endpoint, token);
 }
</code></pre>

<p>I have issue with trying to get WebSockets to be working as code:</p>

<pre><code>console.log('Setting socket: ' + 'wss://' + endpoint + '/api/live?authToken=' + sessionToken); 
</code></pre>

<p>never is triggered . If I put console log before creating new WebSocket it runs. What I'm doing wrong and how can I debug as chrome isn't showing useful information in combination with Genymotion.</p>