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

12
node_modules/ws/lib/constants.js generated vendored Normal file
View File

@@ -0,0 +1,12 @@
'use strict';
module.exports = {
BINARY_TYPES: ['nodebuffer', 'arraybuffer', 'fragments'],
EMPTY_BUFFER: Buffer.alloc(0),
GUID: '258EAFA5-E914-47DA-95CA-C5AB0DC85B11',
kForOnEventAttribute: Symbol('kIsForOnEventAttribute'),
kListener: Symbol('kListener'),
kStatusCode: Symbol('status-code'),
kWebSocket: Symbol('websocket'),
NOOP: () => {}
};