Sending the messages to the broker