Broadcast any event from child to parent

I have this structure


middle is a wrapper component that uses <component :is > to load components.
Now I would like to have any event emitted from child to go to parent.

I could have middle to $on child events individually and $emit back to parent, but I wouldn’t know the events in advance.
Is there any way general way to $on any event on a component?

Ok so this works for me


  <middle @pippo="onPippo" @banana="onBanana"/>


<child v-on="$listeners"></child>