ConnectionErrorEvent

data class ConnectionErrorEvent(@Json(name = "connection_id") val connectionId: String, @Json(name = "created_at") val createdAt: OffsetDateTime, @Json(name = "error") val error: APIError?, @Json(name = "type") val type: String = "connection.error") : VideoEvent, WSClientEvent

This event is sent when the WS connection fails

Parameters

connectionId
createdAt
error
type

The type of event: \"connection.ok\" in this case

Constructors

Link copied to clipboard
constructor(@Json(name = "connection_id") connectionId: String, @Json(name = "created_at") createdAt: OffsetDateTime, @Json(name = "error") error: APIError?, @Json(name = "type") type: String = "connection.error")

Properties

Link copied to clipboard
Link copied to clipboard
val createdAt: OffsetDateTime
Link copied to clipboard
Link copied to clipboard

Functions

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