Create WebSocket Server

- Created a WebSocket server with connection handling and message broadcasting
- Added frontend files including HTML, TypeScript, and CSS for a WebSocket test client
- Configured package.json for both server and frontend with necessary scripts and dependencies
- Introduced Prettier configuration for code formatting
- Established a basic structure for handling WebSocket connections and messages
This commit is contained in:
2025-09-05 23:44:28 -04:00
parent 7733ef2488
commit d8fe4a9dc6
23 changed files with 2180 additions and 39 deletions

View File

@@ -7,7 +7,11 @@
"type": "module",
"main": "index.js",
"scripts": {
"dev": "nodemon --watch 'src/**/*.ts' --exec 'ts-node-esm' src/index.ts"
"dev": "nodemon --watch 'src/**/*.ts' --exec 'ts-node-esm' src/index.ts",
"format": "prettier --write 'src/**/*.ts'",
"lint": "eslint 'src/**/*.ts'",
"prelint:fix": "npm run format",
"lint:fix": "eslint 'src/**/*.ts' --fix"
},
"dependencies": {
"@techniker-me/logger": "0.0.15"
@@ -19,6 +23,7 @@
"globals": "14.0.0",
"jiti": "2.5.1",
"nodemon": "^3.1.0",
"prettier": "3.6.2",
"ts-node": "^10.9.0",
"typescript": "^5.0.0",
"typescript-eslint": "8.42.0"