Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 469 Bytes

README.md

File metadata and controls

26 lines (15 loc) · 469 Bytes

wss_error

How to run

install ws:

npm i ws

Run:

node main.js

Generated certificates

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

Testing

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