Writing a working chat server in Node Blog