title: Angular + Node.js + socket.io Locally its working fine but after deployed on Live server its get ERR_CONNECTION_REFUSED
body: <p>Angular + Node.js + socket.io Locally its working fine but after deployed on Live server its get  ERR_CONNECTION_REFUSED</p>
  <p>Angular Code</p>
  <pre><code>
  url = 'wss://api.my:8000';
      constructor() {
          this.socket = io(this.url);
      }
  </code></pre>
  <p>Node.js code</p>
  <pre><code>require(&quot;dotenv&quot;).config();
  var dateFormat = require('dateformat');
  var mysql = require(&quot;mysql&quot;);
  var app = require('express')();
  var http = require('http').Server(app);
  var io = require('socket.io')(http, {
      cors: {
          origin: &quot;*&quot;
      }
  });
  
  http.listen(8000, function () {
      console.log('Listening to port 8000');
  });
  
  </code></pre>