def __init__(self, host='localhost', port=61613, user='', passcode='', ver='1.1', prompt='> ', verbose=True, use_ssl=False, heartbeats=(0, 0), stdin=sys.stdin, stdout=sys.stdout):
        Cmd.__init__(self, 'Tab', stdin, stdout)
        ConnectionListener.__init__(self)
        self.prompt = prompt
        self.verbose = verbose
        self.user = user
        self.passcode = passcode
        self.__quit = False
        if ver == '1.0':
            self.conn = StompConnection10([(host, port)], wait_on_receipt=True)
        elif ver == '1.1':
            self.conn = StompConnection11([(host, port)], wait_on_receipt=True, heartbeats=heartbeats)
        elif ver == '1.2':
            self.conn = StompConnection12([(host, port)], wait_on_receipt=True, heartbeats=heartbeats)
        elif ver == 'multicast':
            self.conn = MulticastConnection()
        else:
            raise RuntimeError('Unknown version')
        if use_ssl:
            self.conn.set_ssl([(host, port)])
        self.conn.set_listener('', self)
        self.conn.start()
        self.conn.connect(self.user, self.passcode, wait=True)
        self.transaction_id = None
        self.version = ver
        try:
            self.nversion = float(ver)
        except __HOLE__:
            self.nversion = 1.0
        self.__subscriptions = {}
        self.__subscription_id = 1
dataset/ETHPy150Open jasonrbriggs/stomp.py/stomp/__main__.py/StompCLI.__init__