WebSocketConnectionException

open class WebSocketConnectionException(    val url: String,     val httpStatusCode: Int? = null,     message: String = "Couldn't connect to web socket at $url" + statusInfo(httpStatusCode),     cause: Throwable? = null) : WebSocketException

An exception thrown when something went wrong during the web socket connection.

Constructors

Link copied to clipboard
fun WebSocketConnectionException(    url: String,     httpStatusCode: Int? = null,     message: String = "Couldn't connect to web socket at $url" + statusInfo(httpStatusCode),     cause: Throwable? = null)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
val httpStatusCode: Int? = null

The status code in the HTTP response from the handshake request, if available.

Link copied to clipboard
open val message: String?
Link copied to clipboard
val url: String

The target URL of the failed connection.

Inheritors

Link copied to clipboard
Link copied to clipboard