Skip to content

Commit

Permalink
delete logs
Browse files Browse the repository at this point in the history
  • Loading branch information
masechkacat committed Apr 29, 2024
1 parent 558f511 commit bc2b271
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/game/game.gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export class GameGateway implements OnGatewayConnection, OnGatewayDisconnect {
* @param client - The connected socket client.
*/
handleConnection(@ConnectedSocket() client: Socket) {
console.log(`Client connected: ${client.id}`);
const gameStatus = this.gameService.addPlayer(client.id);
if (gameStatus === 'waiting') {
client.emit('message', { text: GameMessages.Waiting });
Expand Down Expand Up @@ -73,7 +72,6 @@ export class GameGateway implements OnGatewayConnection, OnGatewayDisconnect {
handleMove(@ConnectedSocket() client: Socket, @MessageBody() data: MoveDto) {
try {
const result = this.gameService.makeMove(client.id, data.index);
console.log(result);
if (result) {
result.playerIds.forEach((playerId) => {
this.server.to(playerId).emit('gameUpdated', { result });
Expand Down
1 change: 0 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ async function bootstrap() {
await app.listen(port, '0.0.0.0', () => {
console.log(`Application is running on: http://0.0.0.0:${port}`);
});
console.log(`Application is running on: ${await app.getUrl()}`);
}
bootstrap();

0 comments on commit bc2b271

Please sign in to comment.