feat(server): upgrade dependencies
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Simon Giesel 2020-09-22 11:34:19 +02:00
parent 067996357a
commit 50fc9dcb1b
3 changed files with 827 additions and 278 deletions

1058
server/package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -18,27 +18,31 @@
"author": "Simon Giesel", "author": "Simon Giesel",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@nestjs/common": "^6.11.11", "@nestjs/common": "^7.0.8",
"@nestjs/core": "^6.11.11", "@nestjs/core": "^7.0.8",
"@nestjs/platform-fastify": "^6.11.11", "@nestjs/platform-fastify": "^7.0.8",
"@nestjs/swagger": "^4.5.2", "@nestjs/platform-socket.io": "^7.0.8",
"@nestjs/swagger": "^4.5.3",
"@nestjs/websockets": "^7.0.8",
"class-transformer": "^0.2.3", "class-transformer": "^0.2.3",
"class-validator": "^0.11.1", "class-validator": "^0.12.1",
"dotenv": "^8.2.0", "dotenv": "^8.2.0",
"fastify": "^2.13.1", "fastify": "^2.13.1",
"fastify-swagger": "^2.5.1", "fastify-swagger": "^2.5.1",
"handlebars": "^4.7.6", "handlebars": "^4.7.6",
"mongoose": "^5.9.9", "mongoose": "^5.9.10",
"point-of-view": "^3.8.0", "point-of-view": "^3.8.0",
"reflect-metadata": "^0.1.13" "reflect-metadata": "^0.1.13",
"webrtc": "^1.14.1"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.9.0", "@babel/core": "^7.9.0",
"@babel/preset-env": "^7.9.5", "@babel/preset-env": "^7.9.5",
"@types/mongoose": "^5.7.12", "@types/mongoose": "^5.7.12",
"@types/node": "^13.13.0", "@types/node": "^13.13.2",
"@typescript-eslint/eslint-plugin": "^2.28.0", "@types/socket.io": "^2.1.4",
"@typescript-eslint/parser": "^2.28.0", "@typescript-eslint/eslint-plugin": "^2.29.0",
"@typescript-eslint/parser": "^2.29.0",
"babel-loader": "^8.1.0", "babel-loader": "^8.1.0",
"concurrently": "^5.1.0", "concurrently": "^5.1.0",
"dateformat": "^3.0.3", "dateformat": "^3.0.3",
@ -54,9 +58,10 @@
"material-design-icons": "^3.0.1", "material-design-icons": "^3.0.1",
"nodemon": "^2.0.3", "nodemon": "^2.0.3",
"normalize-scss": "^7.0.1", "normalize-scss": "^7.0.1",
"ts-node": "^8.8.2", "socket.io-client": "^2.3.0",
"ts-node": "^8.9.0",
"typeface-roboto": "0.0.75", "typeface-roboto": "0.0.75",
"typescript": "^3.8.3", "typescript": "^3.8.3",
"webpack-stream": "^5.2.1" "webpack-stream": "^5.2.1"
} }
} }

View file

@ -0,0 +1,18 @@
import { ConnectedSocket, MessageBody, SubscribeMessage, WebSocketGateway, WebSocketServer } from '@nestjs/websockets';
import { Server } from 'socket.io';
import { Socket } from 'dgram';
@WebSocketGateway()
export class EventsGateway {
@WebSocketServer()
server: Server;
@SubscribeMessage('start')
handleStart(
@MessageBody() data: string,
@ConnectedSocket() client: Socket,
): void {
const message = JSON.parse(data);
}
}