Array.prototype.each
For some reason, I had it stuck in my mind that forEach() passed the index rather than the element.
http://github.com/ry/node_chat
This chat demo is just a bare-bones tcp socket netcat/telnet chat server. Simple. Elegant. Effective.
https://gist.github.com/a3d0bbbff196af633995
Can you please explain this line?
55 if (c != client)
54 clients.each(function(c) { 55 if (c != client) 56 c.connection.send(client.name + ": " + data); 57 });