From 987057dc0b8892e38cf39005f96c655ac76e19bf Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Thu, 4 Jun 2015 01:36:57 +0100 Subject: added the squeleton for the client Signed-off-by: Olivier Gayot --- game.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 game.js (limited to 'game.js') diff --git a/game.js b/game.js new file mode 100644 index 0000000..b0545af --- /dev/null +++ b/game.js @@ -0,0 +1,15 @@ +$(document).ready(function() { + var ws = new WebSocket('ws://' + document.location.host + ':1236'); + + ws.onopen = function() { + }; + + ws.onclose = function() { + }; + + ws.onmessage = function(evt) { + }; + + ws.onerror = function(evt) { + }; +}); -- cgit v1.2.3