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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user