Create an event instance.

def create(cls, receiver_id, user_id=None):
        """Create an event instance."""
        event = cls(id=uuid.uuid4(), receiver_id=receiver_id, user_id=user_id)
        event.payload = event.receiver.extract_payload()
        return event