receiveMessages

Receive messages from the gateway.