Notes:

  1. Open web console
  2. Run index.js script with nodejs
  3. Access "https://127.0.0.1:8001" in another tab. The browser should alert you about security, since the certificate is self-signed
  4. Accept security exception and close that tab
  5. Reload this page