Skip to content

Commit

Permalink
Remove console.log output.
Browse files Browse the repository at this point in the history
  • Loading branch information
herclogon committed Dec 10, 2022
1 parent 7519539 commit 34fd17c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,12 @@
});

this.socket.addEventListener("open", (event) => {
console.log("WebSocket connection is open.", event);

// Init backend auto-ping, to keep connectoion alive.
this.keepAliveEmitter = setInterval(() => {
let msg = JSON.stringify({
type: MESSAGE_TYPE.PING,
playerId: this.playerId,
});
console.log("<-- send message", msg);
this.socket.send(msg);
}, 5000);

Expand All @@ -136,11 +133,9 @@
type: MESSAGE_TYPE.STATE_REQUEST,
});
this.socket.send(msg);
console.log(msg);
});

this.socket.addEventListener("message", (messageEvent) => {
console.log("--> get message", messageEvent.data);
let message = JSON.parse(messageEvent.data);

// If another player requested our STATE - send it.
Expand Down

0 comments on commit 34fd17c

Please sign in to comment.