update client script for new x.json.x syntax

This commit is contained in:
Will Langstroth 2011-09-05 21:27:22 -04:00
parent 80b7547cfa
commit 5c5ce328e6

View file

@ -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(){