diff --git a/front/app/src/js/components/game/Engine/_GameSocketIO.js b/front/app/src/js/components/game/Engine/_GameSocketIO.js index 8370c73e..82d1a0c5 100644 --- a/front/app/src/js/components/game/Engine/_GameSocketIO.js +++ b/front/app/src/js/components/game/Engine/_GameSocketIO.js @@ -55,9 +55,7 @@ export class _GameSocketIO { await this.#connectErrorHandler(jsonString, URI); }); - this.#socketIO.on('disconnect', () => { - console.log('disconnected from game server'); - }); + this.#socketIO.on('disconnect', () => {}); this.#socketIO.on('fatal_error', async (data) => { console.error('Server fatal error: ', data['error_message']); @@ -169,7 +167,6 @@ export class _GameSocketIO { while (!(this.#engine.scene instanceof Scene)) { await sleep(50); } - console.log('update_paddle received'); const paddle = new PlayerLocation(data['player_location']) .getPlayerFromScene(this.#engine.scene).paddle; @@ -181,7 +178,6 @@ export class _GameSocketIO { while (!(this.#engine.scene instanceof Scene)) { await sleep(50); } - console.log('prepare_ball_for_match received'); const match = this.#engine.scene .getMatchFromLocation(data['match_location']); @@ -203,7 +199,6 @@ export class _GameSocketIO { while (!(this.#engine.scene instanceof Scene)) { await sleep(50); } - console.log('update_ball received'); const match = this.#engine.scene .getMatchFromLocation(data['match_location']); @@ -227,7 +222,6 @@ export class _GameSocketIO { while (!(this.#engine.scene instanceof Scene)) { await sleep(50); } - console.log('player_won_match received'); const newMatchJson = data['new_match_json']; await this.#engine.scene.createMatchIfDoesntExist(newMatchJson); @@ -285,7 +279,6 @@ export class _GameSocketIO { while (!(this.#engine.scene instanceof Scene)) { await sleep(50); } - console.log('game_over received'); for (const looser of this.#engine.scene.loosers) { if (!looser.isCurrentPlayer) { looser.paddle.setDirection('none');