open fun reject(): Unit
Reject the WebSocket.
Calling this method from the websocket handler when it is first passed to you gives you the opportunity to reject the websocket, which will cause the websocket handshake to fail by returning a response code.
You might use this method, if for example you only want to accept WebSockets with a particular path.
open fun reject(status: Int): Unit
Like io.vertx.reactivex.core.http.ServerWebSocket#reject but with a status.