vertx / io.vertx.reactivex.core.http / HttpServerRequest / upgrade

upgrade

open fun upgrade(): ServerWebSocket

Upgrade the connection to a WebSocket connection.

This is an alternative way of handling WebSockets and can only be used if no websocket handlers are set on the Http server, and can only be used during the upgrade request during the WebSocket handshake.

Return
the WebSocket