In order for your application to be able to publish an event, it must first create a
BrokerClient, as described on
Creating and Destroying Broker Clients. Your application may then use the
BrokerClient to create an event, as described on
Setting Structure Fields. After setting the event fields, as described on
Setting Structure Fields, your application is ready to publish the event.