vertx / io.vertx.core.eventbus / EventBus / publish

# publish

`abstract fun publish(address: String, message: Any): EventBus`

Publish a message.

The message will be delivered to all handlers registered to the address.

### Parameters

`address` - the address to publish it to

`message` - the message, may be `null`

Return
a reference to this, so the API can be used fluently

`abstract fun publish(address: String, message: Any, options: DeliveryOptions): EventBus`

Like `#publish(String, Object)` but specifying `options` that can be used to configure the delivery.

### Parameters

`address` - the address to publish it to

`message` - the message, may be `null`

`options` - the delivery options

Return
a reference to this, so the API can be used fluently