server receives clinet's messages.