Chat server from the book.