update client script for new x.json.x syntax
This commit is contained in:
parent
80b7547cfa
commit
5c5ce328e6
1 changed files with 2 additions and 4 deletions
|
@ -5,9 +5,7 @@ var currentTheme = "bigcards";
|
||||||
var boardInitialized = false;
|
var boardInitialized = false;
|
||||||
|
|
||||||
|
|
||||||
var socket = new io.Socket( );
|
var socket = io.connect();
|
||||||
socket.connect();
|
|
||||||
|
|
||||||
|
|
||||||
//an action has happened, send it to the
|
//an action has happened, send it to the
|
||||||
//server
|
//server
|
||||||
|
@ -20,7 +18,7 @@ function sendAction(a, d)
|
||||||
data: d
|
data: d
|
||||||
}
|
}
|
||||||
|
|
||||||
socket.send ( message );
|
socket.json.send ( message );
|
||||||
}
|
}
|
||||||
|
|
||||||
socket.on('connect', function(){
|
socket.on('connect', function(){
|
||||||
|
|
Loading…
Add table
Reference in a new issue