Skip to content

Commit fc7afe9

Browse files
authoredJul 6, 2020
Merge pull request hnasr#8 from NHKK/master
improvements
2 parents 88889c7 + 154b52d commit fc7afe9

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed
 

Diff for: ‎websocket-cell-game/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ <h1>Ball Game</h1>
7070
}
7171

7272

73-
//join
73+
//update
7474
if (response.method === "update"){
7575
//{1: "red", 1}
7676
if (!response.game.state) return;

Diff for: ‎websocket-cell-game/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ wsServer.on("request", request => {
7070
}
7171
//a user plays
7272
if (result.method === "play") {
73-
const clientId = result.clientId;
7473
const gameId = result.gameId;
7574
const ballId = result.ballId;
7675
const color = result.color;

0 commit comments

Comments
 (0)
Please sign in to comment.