simple chat server that recieves message sent from client