vertx / io.vertx.reactivex.core.http / HttpServer / websocketHandler

websocketHandler

open fun websocketHandler(handler: Handler<ServerWebSocket>): HttpServer

Set the websocket handler for the server to wsHandler. If a websocket connect handshake is successful a new io.vertx.reactivex.core.http.ServerWebSocket instance will be created and passed to the handler.

Parameters

handler -

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