vertx / io.vertx.core.net / NetServer / connectHandler

# connectHandler

`abstract fun connectHandler(handler: Handler<NetSocket>): NetServer`

Supply a connect handler for this server. The server can only have at most one connect handler at any one time. As the server accepts TCP or SSL connections it creates an instance of NetSocket and passes it to the connect handler.

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

`abstract fun connectHandler(): Handler<NetSocket>`