- 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;