vertx / io.vertx.kotlin.core.http / webSocketConnectOptionsOf

webSocketConnectOptionsOf

fun webSocketConnectOptionsOf(headers: Map<String, String>? = null, host: String? = null, port: Int? = null, ssl: Boolean? = null, subProtocols: Iterable<String>? = null, uri: String? = null, version: WebsocketVersion? = null): WebSocketConnectOptions

A function providing a DSL for building io.vertx.core.http.WebSocketConnectOptions objects.

Options describing how an io.vertx.core.http.HttpClient connect a io.vertx.core.http.WebSocket.

Parameters

headers - Add a request header.

host - Set the host name to be used by the client request.

port - Set the port to be used by the client request.

ssl - Set whether SSL/TLS is enabled

subProtocols - Set the WebSocket sub protocols to use.

uri - Set the request relative URI

version - Set the WebSocket version.