install ws:
npm i ws
Run:
node main.js
openssl genrsa -des3 -out myCA.key 2048
openssl req -x509 -new -nodes -key myCA.key -sha256 -days 1825 -out myCA.pem
openssl rsa -in myCA.key -text > private.pem
Go to https://www.piesocket.com/websocket-tester
wss://localhost:8888 works wss://my_ip:8888 gives an error
get your ip with ifconfig
in linux or ipconfig
on windows