vertx / io.vertx.rxjava.core.http / ServerWebSocket / textMessageHandler

# textMessageHandler

`open fun textMessageHandler(handler: Handler<String>): WebSocketBase`

Set a text message handler on the connection. This handler will be called similar to the , but the buffer will be converted to a String first

### Parameters

`handler` - the handler

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