vertx / io.vertx.core.http / ServerWebSocket / reject

# reject

`abstract 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 502 response code.

You might use this method, if for example you only want to accept WebSockets with a particular path.

`abstract fun reject(status: Int): Unit`

Like `#reject()` but with a `status`.