How do I create a client only plugin that adds a property to the client object?

I want to create a plugin that intercepts responses and adds a property to the client object. How do I do it?
Was this page helpful?