summaryrefslogtreecommitdiff
path: root/game.js
diff options
context:
space:
mode:
Diffstat (limited to 'game.js')
-rw-r--r--game.js15
1 files changed, 15 insertions, 0 deletions
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) {
+ };
+});