def register_event(self, event_name, callback):
        self._events[event_name] = callback
        return self
Register a callback function to be called when the event occurs.
dataset/ETHPy150Open spantaleev/sijax-python/sijax/core.py/Sijax.register_event