Adds receivedmessages and uses polling to fetch messages from connection