class WebQQClient(object):

    def login(self, username=None, password=None):
        return True

    def logout(self):
        return True

    def heartbeat(self):
        print 'Bom..bong!'

    def run_forever(self):
        i=0
        while True:
            i=i+1
            if i>100:
                break
            print i

class WebQQClient(object):

    def login(self, username=None, password=None):
        return True

    def logout(self):
        return True

    def heartbeat(self):
        print 'Bom..bong!'

    def poll(self):
        return 'poll'

    def run_forever(self):
        i=0
        while True:
            i=i+1
            if i>100:
                break
            print i

添加 poll 函数, 将来用来poll数据