Polymer component encapsulating a strophe-based client