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

13
node_modules/ws/index.js generated vendored Normal file
View File

@@ -0,0 +1,13 @@
'use strict';
const WebSocket = require('./lib/websocket');
WebSocket.createWebSocketStream = require('./lib/stream');
WebSocket.Server = require('./lib/websocket-server');
WebSocket.Receiver = require('./lib/receiver');
WebSocket.Sender = require('./lib/sender');
WebSocket.WebSocket = WebSocket;
WebSocket.WebSocketServer = WebSocket.Server;
module.exports = WebSocket;