commit 2a5a5bba0f8cd0dca558f357e798509e15719590 (patch) parent 0435ad10d57629088963e1a548c9770f645d86bb Author: Chris Karle <chriskarle@hotmail.com> Date: Sat, 28 Mar 2020 15:31:23 -0400 feat(lobby) initial join test ws.send(JSON.stringify({action:'join_game',player_name:'Chris2', game_id:'c12'})) test with above line in browser-tools dev console chriskarle@hotmail.com Diffstat:
M | public/index.html | | | 17 | ++++++++++++++++- |
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/public/index.html b/public/index.html @@ -1 +1,16 @@ -<h1>Hello, Chris</h1> +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> + <title>Euchre Live!!</title> +</head> +<body> + <div id="content"></div> + <script> + var ws = new WebSocket('ws://localhost:3000/play'); + ws.onmessage = function (event) { document.body.innerHTML += event.data }; + </script> + <h1>Hello, Chris</h1> + +</body> +</html>