task: basic chat server functionality.