title: Angular 6 - ngx-mqtt 6.7.0 - Error in connection establishment: net::ERR_CONNECTION_REFUSED
body: <p>I am using <strong>ngx-mqtt</strong> in an Ionic 4 project with this dependencies.</p>
  
  <p>I have followed the instruction's on official site: <a href="https://sclausen.github.io/ngx-mqtt/#description" rel="nofollow noreferrer">https://sclausen.github.io/ngx-mqtt/#description</a></p>
  
  <p>I was testing it on test.mosquitto.org:8080. <strong>It worked.</strong> </p>
  
  <pre><code>"dependencies": {
      "@angular/common": "~6.1.1",
      "@angular/core": "~6.1.1",
      "@angular/forms": "~6.1.1",
      "@angular/http": "~6.1.1",
      "@angular/platform-browser": "~6.1.1",
      "@angular/platform-browser-dynamic": "~6.1.1",
      "@angular/router": "~6.1.1",
      "core-js": "^2.5.3",
      "ngx-mqtt": "^6.4.1",
      "rxjs": "6.2.2",
      "zone.js": "^0.8.26"
    }
  </code></pre>
  
  <p>After update to "ngx-mqtt": "^6.7.0". It started throwing this error.</p>
  
  <pre><code>WebSocket connection to 'ws://test.mosquitto.org:8080/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
  </code></pre>
  
  <p>I recreated the error on a clean angular project, it has the same problem.</p>
  
  <p>I am attaching gist to show.</p>
  
  <p><a href="https://gist.github.com/FrankMa1/ff2118fff681a7fc156a60d7b8eeae37" rel="nofollow noreferrer">https://gist.github.com/FrankMa1/ff2118fff681a7fc156a60d7b8eeae37</a></p>
  
  <p>I do not know what to do with this.</p>