classroom icon indicating copy to clipboard operation
classroom copied to clipboard

Nodejs+socket.io+Redis + rails 搭建的一个 demo 程序

Results 10 classroom issues
Sort by recently updated
recently updated
newest added

http://socket.io/docs/rooms-and-namespaces/ ``` io.on('connection', function(socket){ var addedUser = false; var arrayOfUsername = []; var room = ""; socket.on('add user', function(data) { socket.join(data.room); room = data.room; addedUser = true; socket.username = data.username;...

> By default there are 16 databases (indexed from 0 to 15) and you can navigate between them using select command. Number of databases can be changed in redis config...

http://howtonode.org/socket-io-auth

http://pusher.com/ 第三方服务还是好啊

好像是用 ``` redis.publish redis.subscribe ```

https://github.com/happypeter/ppweb/issues/6

``` async.parallel([ function(callback){ callback(null, 'one'); // null is a MUST here }, function(callback){ callback(null, 'two'); } ], // optional callback function(err, results){ console.log(results); // will output 'one' 'two' }); ```...

社区: http://cnodejs.org/ 源码: https://github.com/cnodejs/nodeclub

有人建议用 async.js 或 Q http://dev.oupeng.com/articles/7-tips-for-a-nodejs-padawan