Skip to content

Commit

Permalink
fixed error
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh3dev committed Feb 23, 2024
1 parent 72b9cc1 commit 684d000
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 16 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ io.on("connection", (socket) => {
io.to(roomid).emit("beginPath", { x, y });
});

socket.on("drawLine", ({ x, y}) => {
console.log("drawLine - room:", roomid);
io.to(roomid).emit("drawLine", { x, y });
socket.on("drawPath", ({ x, y}) => {
console.log("drawPath - room:", roomid);
io.to(roomid).emit("drawPath", { x, y });
});

socket.on('changeConfig', (arg) => {
Expand Down
60 changes: 48 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"dependencies": {
"cors": "^2.8.5",
"express": "^4.18.2",
"nodemon": "^3.0.3",
"socket.io": "^4.7.4"
},
"devDependencies": {
"nodemon": "^3.1.0"
}
}

0 comments on commit 684d000

Please sign in to comment.