Beispiel #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)
    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)
    def muc_joined(self):
        StreamTubeInitiatorClient.muc_joined(self)

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

        self.join_muc()
 def __init__(self, account_file, muc_id, socket_path=None):
     StreamTubeInitiatorClient.__init__(self, account_file, muc_id, None, socket_path)
 def __init__(self, account_file, contact_id, socket_address=None):
     StreamTubeInitiatorClient.__init__(self, account_file, None, contact_id, socket_address)
Beispiel #7
0
 def __init__(self, account_file, contact_id, socket_address=None):
     StreamTubeInitiatorClient.__init__(self, account_file, None,
                                        contact_id, socket_address)
    def muc_joined(self):
        StreamTubeInitiatorClient.muc_joined(self)

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

        self.join_muc()
 def __init__(self, account_file, muc_id, socket_path=None):
     StreamTubeInitiatorClient.__init__(self, account_file, muc_id, None,
                                        socket_path)