simulate to get messages from server