diff options
Diffstat (limited to 'draughts/public/javascripts/game.js')
-rw-r--r-- | draughts/public/javascripts/game.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/draughts/public/javascripts/game.js b/draughts/public/javascripts/game.js new file mode 100644 index 0000000..ede6459 --- /dev/null +++ b/draughts/public/javascripts/game.js @@ -0,0 +1,4 @@ +//const ws = new WebSocket("ws://localhost:3000") +//ws.addEventListener("open", () => console.log("We are connected!")) + +document.getElementById("resign").addEventListener("click", () => ws.send("RESIGN")) |