Problem with handling pubsub messages

thank you i added your fix and did some more testing finaly i had to add bas64 decode before the key and it works now - yeah