Message Event - Configuration

How can we provide custom details for event subscriptions.

I found that there is a configuration object for a message. Here

I could not find any example to use the configuration.

Any help?