Skip to content

dev-nhd99/websocket-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

Step 1 Gen ssl for server wss

openssl genrsa -out private-key.pem 2048


openssl req -new -key private-key.pem -out certificate.csr \
    -subj "/C=US/ST=State/L=City/O=Organization/OU=OrgUnit/CN=localhost"


openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
    -keyout private-key.pem -out certificate.pem \
    -subj "/C=US/ST=State/L=City/O=Organization/OU=OrgUnit/CN=localhost" \
    -addext "subjectAltName=DNS:localhost"

Step 2 

Config https local 

Run

npm i 

node server-wss.js

run websocket with liveserver

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published