Problem with handling pubsub messages

Thanks BarryCarlyon! Sorry about posting on this thread instead of making a new one. I found it thru google initially and thought someone else may find that way and then would see something relevant. Won’t do again in the future.