sync cached messages on connect