use pending message queue to resent pending messages when connection becomes available again