Exemplo n.º 1
0
    def ready_cb(self, conn):
        StreamTubeInitiatorClient.ready_cb(self, conn)

        # Gabble will refuse to create the tube if it didn't receive contact's
        # capability yet (to ensure that he supports tubes). Ideally we should
        # use the ContactCapability interface to determine when we can offer
        # the tube. As this API is still a DRAFT, we just add a delay for now.
        time.sleep(5)
        self.create_tube(CONNECTION_HANDLE_TYPE_CONTACT, self.contact_id)
Exemplo n.º 2
0
    def ready_cb(self, conn):
        StreamTubeInitiatorClient.ready_cb(self, conn)

        # Gabble will refuse to create the tube if it didn't receive contact's
        # capability yet (to ensure that he supports tubes). Ideally we should
        # use the ContactCapability interface to determine when we can offer
        # the tube. As this API is still a DRAFT, we just add a delay for now.
        time.sleep(5)
        self.create_tube(CONNECTION_HANDLE_TYPE_CONTACT, self.contact_id)
Exemplo n.º 3
0
    def muc_joined(self):
        StreamTubeInitiatorClient.muc_joined(self)

        print("muc joined. Create the tube")
        self.create_tube(CONNECTION_HANDLE_TYPE_ROOM, self.muc_id)
Exemplo n.º 4
0
    def ready_cb(self, conn):
        StreamTubeInitiatorClient.ready_cb(self, conn)

        self.join_muc()
Exemplo n.º 5
0
 def __init__(self, account_file, muc_id, socket_path=None):
     StreamTubeInitiatorClient.__init__(self, account_file, muc_id, None, socket_path)
Exemplo n.º 6
0
 def __init__(self, account_file, contact_id, socket_address=None):
     StreamTubeInitiatorClient.__init__(self, account_file, None, contact_id, socket_address)
Exemplo n.º 7
0
 def __init__(self, account_file, contact_id, socket_address=None):
     StreamTubeInitiatorClient.__init__(self, account_file, None,
                                        contact_id, socket_address)
Exemplo n.º 8
0
    def muc_joined(self):
        StreamTubeInitiatorClient.muc_joined(self)

        print "muc joined. Create the tube"
        self.create_tube(CONNECTION_HANDLE_TYPE_ROOM, self.muc_id)
Exemplo n.º 9
0
    def ready_cb(self, conn):
        StreamTubeInitiatorClient.ready_cb(self, conn)

        self.join_muc()
Exemplo n.º 10
0
 def __init__(self, account_file, muc_id, socket_path=None):
     StreamTubeInitiatorClient.__init__(self, account_file, muc_id, None,
                                        socket_path)