Compare commits
1 commit
nonFunctio
...
master
Author | SHA1 | Date | |
---|---|---|---|
50fc9dcb1b |
3 changed files with 827 additions and 278 deletions
1058
server/package-lock.json
generated
1058
server/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -18,27 +18,31 @@
|
|||
"author": "Simon Giesel",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@nestjs/common": "^6.11.11",
|
||||
"@nestjs/core": "^6.11.11",
|
||||
"@nestjs/platform-fastify": "^6.11.11",
|
||||
"@nestjs/swagger": "^4.5.2",
|
||||
"@nestjs/common": "^7.0.8",
|
||||
"@nestjs/core": "^7.0.8",
|
||||
"@nestjs/platform-fastify": "^7.0.8",
|
||||
"@nestjs/platform-socket.io": "^7.0.8",
|
||||
"@nestjs/swagger": "^4.5.3",
|
||||
"@nestjs/websockets": "^7.0.8",
|
||||
"class-transformer": "^0.2.3",
|
||||
"class-validator": "^0.11.1",
|
||||
"class-validator": "^0.12.1",
|
||||
"dotenv": "^8.2.0",
|
||||
"fastify": "^2.13.1",
|
||||
"fastify-swagger": "^2.5.1",
|
||||
"handlebars": "^4.7.6",
|
||||
"mongoose": "^5.9.9",
|
||||
"mongoose": "^5.9.10",
|
||||
"point-of-view": "^3.8.0",
|
||||
"reflect-metadata": "^0.1.13"
|
||||
"reflect-metadata": "^0.1.13",
|
||||
"webrtc": "^1.14.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.9.0",
|
||||
"@babel/preset-env": "^7.9.5",
|
||||
"@types/mongoose": "^5.7.12",
|
||||
"@types/node": "^13.13.0",
|
||||
"@typescript-eslint/eslint-plugin": "^2.28.0",
|
||||
"@typescript-eslint/parser": "^2.28.0",
|
||||
"@types/node": "^13.13.2",
|
||||
"@types/socket.io": "^2.1.4",
|
||||
"@typescript-eslint/eslint-plugin": "^2.29.0",
|
||||
"@typescript-eslint/parser": "^2.29.0",
|
||||
"babel-loader": "^8.1.0",
|
||||
"concurrently": "^5.1.0",
|
||||
"dateformat": "^3.0.3",
|
||||
|
@ -54,7 +58,8 @@
|
|||
"material-design-icons": "^3.0.1",
|
||||
"nodemon": "^2.0.3",
|
||||
"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",
|
||||
"typescript": "^3.8.3",
|
||||
"webpack-stream": "^5.2.1"
|
||||
|
|
18
server/src/app/events/events.gateway.ts
Normal file
18
server/src/app/events/events.gateway.ts
Normal 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);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue