From 2e7b58ae8543b665aa82ae3fe21da0eb5c9d0dd5 Mon Sep 17 00:00:00 2001 From: Will Langstroth Date: Mon, 5 Sep 2011 21:34:44 -0400 Subject: [PATCH] update to new x.json.x syntax on server --- server.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/server.js b/server.js index b1f7cec..9c46bf0 100644 --- a/server.js +++ b/server.js @@ -134,7 +134,7 @@ function scrub( text ) { joinRoom(client, message.data, function(clients) { - client.send( { action: 'roomAccept', data: '' } ); + client.json.send( { action: 'roomAccept', data: '' } ); }); @@ -340,7 +340,7 @@ function initClient ( client ) db.getAllCards( room , function (cards) { - client.send( + client.json.send( { action: 'initCards', data: cards @@ -351,7 +351,7 @@ function initClient ( client ) db.getAllColumns ( room, function (columns) { - client.send( + client.json.send( { action: 'initColumns', data: columns @@ -364,7 +364,7 @@ function initClient ( client ) if (theme == null) theme = 'bigcards'; - client.send( + client.json.send( { action: 'changeTheme', data: theme @@ -375,7 +375,7 @@ function initClient ( client ) db.getBoardSize( room, function(size) { if (size != null) { - client.send( + client.json.send( { action: 'setBoardSize', data: size @@ -401,7 +401,7 @@ function initClient ( client ) } console.log('initialusers: ' + roommates); - client.send( + client.json.send( { action: 'initialUsers', data: roommates