Create "loose" or "anonymous" event

Hello,

is it possible to create some kind of “anonymous” event?

I mean in the constructor of the BrokerEvent I have to provide any Event Type. Its not possible to provide null or an empty string.

I would like to create an event in which I could store ANY fields in unlimited amount. If I provide some non-existing event type (like “xxx”) all provided fields are ignored (this is documented and expected behaviour).

Is there some type like “Adapter::Anything” ?

Thanks

In the BrokerEvent constructor, pass null for the client. The event will not be type-checked. I think you still have to provide a type name, however.

I’m not sure what will happen when you try to publish such an event. It might fail due to (late) type-checking.