title: How can I create an SSL connection for socket.io in nest.js?
body: <p>|Greetings|</p>
  
  <p>We are developing an application using nest.js and socket.io, and I'd like to know whether it's possible to create an SSL connection for this environment.</p>
  
  <p>Here's the link to the repo: <a href="https://github.com/nokia/skilltree" rel="nofollow noreferrer">https://github.com/nokia/skilltree</a>
  ( the latest attempts have been made in the David branch )</p>
  
  <p>I tried this one, but the socket.io still doesn't use SSL connection:
  <a href="https://blog.cloudboost.io/everything-about-creating-an-https-server-using-node-js-2fc5c48a8d4e" rel="nofollow noreferrer">https://blog.cloudboost.io/everything-about-creating-an-https-server-using-node-js-2fc5c48a8d4e</a>
  They suggest this:</p>
  
  <pre><code>var options = {
    key: key,
    cert: cert,
    ca: ca
  };
  var https = require('https');
  https.createServer(options, app).listen(443);
  </code></pre>
  
  <p>Thank you for any help in advance</p>