Added web sockets

Changed index.js to add WebSockets to the server
Changed index.html to add WebSockets to the client
Install ws (web sockets) module
This commit is contained in:
ShakedAp
2023-06-24 13:55:54 +03:00
parent 155968209a
commit cb7fb85842
24 changed files with 5230 additions and 14 deletions

22
node_modules/.package-lock.json generated vendored
View File

@@ -1,5 +1,5 @@
{
"name": "synchronized-video-streaming",
"name": "wstest",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
@@ -591,6 +591,26 @@
"engines": {
"node": ">= 0.8"
}
},
"node_modules/ws": {
"version": "8.13.0",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz",
"integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==",
"engines": {
"node": ">=10.0.0"
},
"peerDependencies": {
"bufferutil": "^4.0.1",
"utf-8-validate": ">=5.0.2"
},
"peerDependenciesMeta": {
"bufferutil": {
"optional": true
},
"utf-8-validate": {
"optional": true
}
}
}
}
}