SocketConnection

data class SocketConnection(val id: String, val url: String, val openedAtEpochMs: Long, val closedAtEpochMs: Long? = null, val state: SocketConnectionState = SocketConnectionState.OPEN, val error: String? = null, val reconnectAttempt: Int = 0, val messages: List<SocketMessage> = emptyList(), val protocol: SocketProtocol = SocketProtocol.WEBSOCKET)

Constructors

Link copied to clipboard
constructor(id: String, url: String, openedAtEpochMs: Long, closedAtEpochMs: Long? = null, state: SocketConnectionState = SocketConnectionState.OPEN, error: String? = null, reconnectAttempt: Int = 0, messages: List<SocketMessage> = emptyList(), protocol: SocketProtocol = SocketProtocol.WEBSOCKET)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val url: String

Functions