def on_message(self, raw_message):
        message = json.loads(raw_message)
        event_type = message.get("type")

        try:
            event_class = self.event_callbacks[event_type]

        except __HOLE__:
            print("I don't know how to process '%s' events!" % (
                event_type))
            return

        event = event_class(**message)
        self.app.widget_event(event)
dataset/ETHPy150Open ejeschke/ginga/ginga/web/pgw/PgHelp.py/ApplicationHandler.on_message