WebSocketConnectionClosedException

class WebSocketConnectionClosedException(    val url: String,     val code: Int,     val reason: String?) : WebSocketConnectionException

An exception thrown when the server closed the connection unexpectedly during the handshake.

Constructors

Link copied to clipboard
fun WebSocketConnectionClosedException(    url: String,     code: Int,     reason: String?)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
val code: Int
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 reason: String?
Link copied to clipboard
val url: String

The target URL of the failed connection.

Sources

Link copied to clipboard