From 5c5ce328e688a8150b3968afb2c224fe15dc21ec Mon Sep 17 00:00:00 2001 From: Will Langstroth Date: Mon, 5 Sep 2011 21:27:22 -0400 Subject: [PATCH] update client script for new x.json.x syntax --- client/script.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/client/script.js b/client/script.js index 81d0594..9929466 100644 --- a/client/script.js +++ b/client/script.js @@ -5,9 +5,7 @@ var currentTheme = "bigcards"; var boardInitialized = false; -var socket = new io.Socket( ); -socket.connect(); - +var socket = io.connect(); //an action has happened, send it to the //server @@ -20,7 +18,7 @@ function sendAction(a, d) data: d } - socket.send ( message ); + socket.json.send ( message ); } socket.on('connect', function(){