Entries from 2011-07-01 to 1 day

socket.io 0.7 でチャンネルをとりあえず振り分ける

var chat = require('socket.io').listen(80) .of('/chat') .on('connection', function(socket) { socket.on('message', function(msg) { socket.get('roomName', function(err, name) { console.log("[message]", name); chat.in(name).send(msg); }); });…