def __init__(self, jid, stanza_route, handlers, settings = None):
if handlers is None:<EOL><INDENT>handlers = []<EOL><DEDENT>if settings is None:<EOL><INDENT>settings = XMPPSettings()<EOL><DEDENT>if "<STR_LIT>" not in settings:<EOL><INDENT>settings["<STR_LIT>"] = jid.resource<EOL><DEDENT>StreamBase.__init__(self, STANZA_CLIENT_NS, stanza_route,<EOL>handlers, settings)<EOL>self.me = JID(jid.local, jid.domain)<EOL>
Initialize the ClientStream object.

        :Parameters:
            - `jid`: local JID.
            - `handlers`: XMPP feature and event handlers
            - `settings`: PyXMPP settings for the stream
        :Types:
            - `jid`: `JID`
            - `settings`: `XMPPSettings`