Skip to content

Latest commit

 

History

History

websocket-server-demo

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Websocket Server Demo

Usage

yarn install


## start the server
node server.mjs

## Use the WebSocket in Browser
## visit http://localhost:10100/index.html


## Use the WebSocket in Node
node client.mjs


## Check out the normal http request
node room-apply.mjs

If you prefer use raw http module as the server, run node server-raw.mjs