ConnectionClosed

class ConnectionClosed(val peer: Endpoint, val reason: String) : EndpointEvent(source)

The connection to peer closed. Its exchanges failed with CoapException.Reason.CONNECTION_CLOSED and its observations ended (RFC 8323 §3.4, §7.4).

Constructors

Link copied to clipboard
constructor(peer: Endpoint, reason: String)

Properties

Link copied to clipboard
open override val peer: Endpoint

The peer the event concerns.

Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String