Changed index.js to add WebSockets to the server Changed index.html to add WebSockets to the client Install ws (web sockets) module
16 lines
244 B
JSON
16 lines
244 B
JSON
{
|
|
"name": "wstest",
|
|
"version": "1.0.0",
|
|
"description": "",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"start": "node index.js"
|
|
},
|
|
"author": "",
|
|
"license": "ISC",
|
|
"dependencies": {
|
|
"express": "^4.18.2",
|
|
"ws": "^8.13.0"
|
|
}
|
|
}
|