added getPubnubMessage method to pnmesage