refactor(*): Add websocket server

This commit is contained in:
Josh Creek
2023-07-09 19:07:14 +01:00
parent 6c3a8b1b6e
commit d70ec4d21d
4 changed files with 132 additions and 5 deletions
+16 -5
View File
@@ -2,15 +2,26 @@
"name": "websocket-server",
"version": "1.0.0",
"description": "",
"main": "websocket.js",
"main": "websocket.ts",
"scripts": {
"ts": "tsc -p .",
"start": "npm run ts && npm run start:server",
"start:server": "node websocket.js",
"dev": "tsc-watch -p tsconfig.json --onSuccess \"npm run start:server\"",
"test": "echo \"Error: no test specified\" && exit 1"
},
"type": "module",
"author": "",
"license": "ISC",
"dependencies": {
"@netlify/functions": "^1.6.0",
"uuid": "^9.0.0",
"ws": "^8.13.0"
}
"@netlify/functions": "^1.6.0",
"@types/body-parser": "^1.19.2",
"@types/express": "^4.17.13",
"@types/ws": "^8.5.4",
"body-parser": "^1.20.0",
"express": "^4.17.3",
"tsc-watch": "^5.0.3",
"typescript": "^4.6.3",
"ws": "^8.12.1"
}
}