+ clients[obj.target].send(
+ JSON.stringify({code:"identity",user:obj.user}));
+ break;
+ case "challenge":
+ clients[obj.target].send(
+ JSON.stringify({code:"challenge", chall:obj.chall, from:sid}));
+ break;
+ case "acceptchallenge":
+ clients[obj.target].send(
+ JSON.stringify({code:"acceptchallenge", cid:obj.cid, from:sid}));
+ break;
+ case "withdrawchallenge":
+ clients[obj.target].send(
+ JSON.stringify({code:"withdrawchallenge", cid:obj.cid, from:sid}));
+ break;
+ case "refusechallenge":
+ clients[obj.target].send(
+ JSON.stringify({code:"refusechallenge", cid:obj.cid, from:sid}));
+ break;
+ case "deletechallenge":
+ clients[obj.target].send(
+ JSON.stringify({code:"deletechallenge", cid:obj.cid, from:sid}));