File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 LeaveLobbyPayload ,
88 LobbyLeftPayload ,
99 LobbySearchedPayload ,
10- LobbySpectatedPayload ,
1110 ResponseStatusPayload ,
1211 EventMessage ,
1312 SearchLobbyPayload ,
Original file line number Diff line number Diff line change 1- import { NestFactory } from '@nestjs/core' ;
2- import { AppModule } from './app.module' ;
3- import { LOBBYMAN } from './types/models.types' ;
4- import { WsAdapter } from '@nestjs/platform-ws' ;
5-
6- async function bootstrap ( ) {
7- const app = await NestFactory . create ( AppModule ) ;
8- app . useWebSocketAdapter ( new WsAdapter ( app ) ) ;
9-
10- LOBBYMAN . lobbies = { } ;
11- LOBBYMAN . machineConnections = { } ;
12- LOBBYMAN . spectatorConnections = { } ;
13-
14- await app . listen ( 1337 ) ;
15-
16- console . log ( `Application is running on: ${ await app . getUrl ( ) } ` ) ;
17- }
18- bootstrap ( ) ;
1+ import { NestFactory } from '@nestjs/core' ;
2+ import { AppModule } from './app.module' ;
3+ import { LOBBYMAN } from './types/models.types' ;
4+ import { WsAdapter } from '@nestjs/platform-ws' ;
5+
6+ async function bootstrap ( ) {
7+ const app = await NestFactory . create ( AppModule ) ;
8+ app . useWebSocketAdapter ( new WsAdapter ( app ) ) ;
9+
10+ LOBBYMAN . lobbies = { } ;
11+ LOBBYMAN . machineConnections = { } ;
12+ LOBBYMAN . spectatorConnections = { } ;
13+
14+ await app . listen ( 1337 ) ;
15+
16+ console . log ( `Application is running on: ${ await app . getUrl ( ) } ` ) ;
17+ }
18+ bootstrap ( ) ;
You can’t perform that action at this time.
0 commit comments