Server side of the simple chat project