Update PubSub.scala

Support for pmessage as current implementation doesn't support the right pattern