进一步优化算法 引入Websocket

This commit is contained in:
CN-JS-HuiBai
2026-04-05 22:45:23 +08:00
parent d7d650c5f9
commit 2a8cb32d47
6 changed files with 226 additions and 206 deletions

24
package-lock.json generated
View File

@@ -13,7 +13,8 @@
"dotenv": "^16.4.0",
"express": "^4.21.0",
"ioredis": "^5.10.1",
"mysql2": "^3.11.0"
"mysql2": "^3.11.0",
"ws": "^8.20.0"
}
},
"node_modules/@ioredis/commands": {
@@ -1215,6 +1216,27 @@
"engines": {
"node": ">= 0.8"
}
},
"node_modules/ws": {
"version": "8.20.0",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.20.0.tgz",
"integrity": "sha512-sAt8BhgNbzCtgGbt2OxmpuryO63ZoDk/sqaB/znQm94T4fCEsy/yV+7CdC1kJhOU9lboAEU7R3kquuycDoibVA==",
"license": "MIT",
"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
}
}
}
}
}