title: Error: read ECONNRESET when connecting from mqtt node.js
body: <p>I am facing an issue when trying to connect to mqtt broker, I have installed the mosquitto and given two ports(1883,8883) as a listener in the mosquitto.conf file. When I try to run the code for connect from node.js for mqtts on port 8883 I get below error</p>
  
  <pre><code>Error: read ECONNRESET
  </code></pre>
  
  <p>and on mosquitto</p>
  
  <pre><code>socket error on client &lt;unknown&gt; disconnecting
  </code></pre>
  
  <p>When I try to publish a message using MQTT.fx it successfully publish the mesasge on port 8883</p>
  
  <p>Below is my code</p>
  
  <pre><code>const config = {
    endpoint: 'mqtts://192.168.0.0',
    topic: 'test/topic/local',
    payload: {message: 'HelloWorld'},
  }
  mqtt.connect(config.endpoint, {
                      clientId: 'some id',
            })
  </code></pre>
  
  <p>Are there some configurations needs to be done?</p>