diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-06-04 01:36:57 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-06-04 01:36:57 +0100 |
commit | 987057dc0b8892e38cf39005f96c655ac76e19bf (patch) | |
tree | f25c0556750ddee45f644aa27899ca8781885246 /game.js | |
parent | 1cf58beeafc9dd0db95609cd7c1ce7529cdb9842 (diff) |
added the squeleton for the client
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'game.js')
-rw-r--r-- | game.js | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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) { + }; +}); |