wenbert
unread,Aug 3, 2011, 6:16:21 AM8/3/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nowjs
Hello, I'm not sure where to address this question, but I have a very
app running on nodejs, nowjs, with node_redis.
I am trying to get a value from the key: card
//REDIS
var redis = require("redis"),
client = redis.createClient();
client.on("error", function (err) {
console.log("Error "+ err);
});
client.set("card", "apple");
everyone.now.signalShowRedisCard = function() {
nowjs.getGroup(this.now.room).now.receiveShowRedisCard(client.get("card").toString());
}
In my client side:
now.receiveShowRedisCard = function(card_id) {
alert("redis card: "+card_id);
}
The alert only gives out "true" - I was expecting to get the value of
the key "card" which is "apple".
Any ideas?
PS: I have a crosspost for this question is Stackoverflow (decided to
post the question here after finding out there are only about 17 posts
tagged in SO for nowjs :-( )