Tutorial implementation of a node chat server