pubsub working demo