added new method: receiveServerMessage()