def on_event(self, i):
        print("Got event: {}".format(i))
        self.received += 1
        # self.config.extra for configuration, etc. (see [A])
        if self.config.extra['max_events'] > self.received:
            print("Received enough events; disconnecting.")
            self.leave()
dataset/ETHPy150Open crossbario/autobahn-python/examples/twisted/wamp/pubsub/basic/frontend.py/Component.on_event/swapped operands of `>`