pubsub: Implement acknowledgment.