def is_connected(self):
return self.transport.is_connected() and self._output_state == "<STR_LIT>"<EOL>
Check if stream is is_connected and stanzas may be sent.

        :return: True if stream connection is active.