Implementation of a chat server with node.js