title: Unable to connect to test.mosquitto.org for testing
body: <p>I am trying to setup a project in Angular where I need to read mqtt packets over WS. I am using ngx-mqtt package for the same.</p>
  <p>Having set up the basic things, I tried listening to the mqtt server set up by <a href="https://test.mosquitto.org/" rel="nofollow noreferrer">test.mosquitto.org</a>. As mentioned in the link, I am trying to listen at port 8080 over WS.</p>
  <p>However, I keep getting the following error:</p>
  <p><a href="https://i.stack.imgur.com/P0OQy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P0OQy.png" alt="enter image description here" /></a></p>
  <p>For my angular part, I am following this <a href="https://bugfender.com/blog/using-mqtt-on-angular-apps/" rel="nofollow noreferrer">tutorial</a> and have everything setup exactly same except for port number and server obviously, which I am using as below:</p>
  <pre><code>export const environment = {
    production: false,
    mqtt: {
          server: 'test.mosquitto.org',
          protocol: &quot;ws&quot;,
          port: 8080
      }
  };
  </code></pre>
  <p>Is there a specific path or a specific topic that I should listen to. Can some one give me some more details regarding this test connection.</p>
  <p><strong>Update:</strong></p>
  <p>As suggested by @hardillb in the comments, I tried listening to other port and now I am not getting the attached error. I can see binary data Send/Receive in my WS section of browser's network tab.</p>
  <p>However, as normally expected in an angular application the below subscribe call back is not triggered after the data is received.</p>
  <pre><code>private subscribeToTopic() {
        this.subscription = this.eventMqtt.topic('testing')
          .subscribe((data: IMqttMessage) =&gt; {
            let item = JSON.parse(String.fromCharCode.apply(null, new Uint8Array(data)));
            this.events.push(item);
            console.log(this.events);
        });
      }
  </code></pre>
  <p>Any suggestions? Do I need to approach this in any other way ? I really haven't worked before with WS, so I might be missing some basics here.</p>