title: Can't connect to pusher with react-native
body: <p>Hello i am new to react native and im trying to create a realtime chat application using pusher-js so i installed the package <strong>npm install pusher-js @react-native-community/netinfo</strong> and put the following code in my useEffect</p>
  <pre><code>useEffect(() =&gt; {
      // Enable pusher logging - don't include this in production
      Pusher.logToConsole = true;
  
      var pusher = new Pusher('REDACTED', {
          cluster:&quot;eu&quot;});
  
      var channel = pusher.subscribe('my-channel');
      channel.bind('my-event', function(data) {
          alert(JSON.stringify(data));
      });
      
  }, [])
  </code></pre>
  <p>and im getting this in the console
  <a href="https://i.stack.imgur.com/moUJe.png" rel="nofollow noreferrer">Link of the image</a></p>
  <p>Im using react-native run-android to run and im using a physical device.
  Thanks in advance for all the help you can provide.</p>