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

connectHandler

open 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 io.vertx.reactivex.core.net.NetSocket and passes it to the connect handler.

Parameters

handler -

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