def _onEvent_items(self, sender, recipient, action, headers):
        nodeIdentifier = action["node"]

        items = [element for element in action.elements()
                         if element.name in ('item', 'retract')]

        event = ItemsEvent(sender, recipient, nodeIdentifier, items, headers)
        self.itemsReceived(event)
dataset/ETHPy150Open ralphm/wokkel/wokkel/pubsub.py/PubSubClient._onEvent_items/original