vertx / io.vertx.reactivex.core.http / HttpClient / websocketAbs

websocketAbs

open fun websocketAbs(url: String, headers: MultiMap, version: WebsocketVersion, subProtocols: String, wsConnect: Handler<WebSocket>, failureHandler: Handler<Throwable>): HttpClient

Connect a WebSocket with the specified absolute url, with the specified headers, using the specified version of WebSockets, and the specified websocket sub protocols.

Parameters

url - the absolute url

headers - the headers

version - the websocket version

subProtocols - the subprotocols to use

wsConnect - handler that will be called with the websocket when connected

failureHandler - handler that will be called if websocket connection fails

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