Server Syntax
var io = require('socket.io')(80);
io.on('connection', function (mysocket) {
//custom event called `private message`
mysocket.on('private message', function (from, msg) {
console.log('I received a private message by ', from, ' saying ', msg);
});
//internal `di...